Vulnerability · Published Jun 9, 2022 · Assigned by GitHub_M
CVE-2022-31051Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
Medium 4.4
In plain English
A medium-severity information exposure in semantic-release from semantic-release. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | semantic-release | 19.0.3 | GHSA-x2pg-mjhr-2m5x |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| semantic-release | semantic-release | >= 17.0.4, < 19.0.3 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x x_refsource_CONFIRM
- https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad x_refsource_MISC
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI x_refsource_MISC
- https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3 x_refsource_MISC