Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-31051: semantic-release is an open source npm package for automated version management and package publishing

35
Routine
MEDIUM 4.4UPGRADE

CVE-2022-31051 is a medium-severity flaw (CVSS 4.4) affecting semantic-release. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

semantic-release is an open source npm package for automated version management and package publishing. In affected versions secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by `encodeURI`. Occurrence is further limited to execution contexts where push access to the related repository is not available without modifying the repository url to injec

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score4.4 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededHigh
User interactionNone
EPSS exploit chance1.8% (top 22%)
CISA exploited listNo
WeaknessCWE-200
Published2022-06-09
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: semantic-release project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

semantic-release project semantic-release UPGRADE
Affected: >= 17.0.4 and < 19.0.3
Fixed in: 19.0.3
Safe to downgrade to: a release before 17.0.4
1. Check installed version
apt-cache policy semantic-release || rpm -q semantic-release || semantic-release --version
2. UPGRADE to 19.0.3 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade semantic-release
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade semantic-release
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 17.0.4 (Debian / Ubuntu)
apt-cache madison semantic-release sudo apt install semantic-release=<VERSION_BEFORE_17.0.4> sudo apt-mark hold semantic-release
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list semantic-release sudo dnf downgrade semantic-release-<VERSION_BEFORE_17.0.4> sudo dnf versionlock add semantic-release
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-31051?

semantic-release: upgrade to 19.0.3. Exact commands for each OS are on this page.

Is CVE-2022-31051 being exploited?

CVE-2022-31051 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-31051 affect?

CVE-2022-31051 affects semantic-release. Severity is medium (CVSS 4.4). semantic-release is an open source npm package for automated version management and package publishing. In affected versions secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters

How urgent is CVE-2022-31051?

Priority 35/100. No elevated risk signals yet.

Software pages

npm packages vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.