CVE-2022-31051: semantic-release is an open source npm package for automated version management and package publishing
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 score | 4.4 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 1.8% (top 22%) |
| CISA exploited list | No |
| Weakness | CWE-200 |
| Published | 2022-06-09 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
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
Related CVEs
- CVE-2020-26226 HIGH 8.1 UPGRADE In the npm package semantic-release before version 17.2.3, secrets that would normally be masked by `semantic-