CVE-2022-31051: Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
Vulnerability summary
CVE-2022-31051 is a high (CVSS 7.5) vulnerability in semantic-release_project semantic-release. EPSS estimates a 1.80% chance of exploitation in the next 30 days, higher than 79.2% of scored vulnerabilities.
Not severe (CVSS 4.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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.80%
Chance of exploitation in the next 30 days
Percentile
79%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.80% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
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