Vulnerability Details : CVE-2022-31051
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.
Vulnerability category: Information leak
Products affected by CVE-2022-31051
- Semantic-release Project » Semantic-releaseVersions from including (>=) 17.0.4 and before (<) 19.0.3cpe:2.3:a:semantic-release_project:semantic-release:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-31051
0.22%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 61 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-31051
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST | |
4.4
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N |
0.7
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2022-31051
-
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-31051
-
https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x
Exposure of Sensitive Information to an Unauthorized Actor in semantic-release · Advisory · semantic-release/semantic-release · GitHubThird Party Advisory
-
https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3
Release v19.0.3 · semantic-release/semantic-release · GitHubRelease Notes;Third Party Advisory
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI
encodeURI() - JavaScript | MDNThird Party Advisory
-
https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad
fix(log-repo): use the original form of the repo url to remove the ne… · semantic-release/semantic-release@58a226f · GitHubPatch;Third Party Advisory
Jump to