CVE-2022-31051: semantic-release_project semantic-release
Vulnerability summary
CVE-2022-31051 is a high (CVSS 7.5) vulnerability in semantic-release_project semantic-release. EPSS estimates a 1.73% chance of exploitation in the next 30 days, higher than 77.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1Timeline
- 09-06-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
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 inject credentials. Users are advised to upgrade. Users unable to upgrade should ensure that secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA4.4MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
1.73%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
+0.04 pp
From 1.69% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm1 product
- semantic-release≥ 17.0.4, < 19.0.3
Semantic-release1 product
- semantic-release≥ 17.0.4, < 19.0.3
Semantic-release_project1 product
- semantic-release≥ 17.0.4, < 19.0.3
3 vendors · 3 products
References
8 links- github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5xX Refsource CONFIRMWEBThird Party Advisory
- github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cadX Refsource MISCWEBPatchThird Party Advisory
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIX Refsource MISCWEBThird Party Advisory
- github.com/semantic-release/semantic-release/releases/tag/v19.0.3X Refsource MISCWEBRelease NotesThird Party Advisory