# CVE-2022-31051: Exposure of Sensitive Information to an Unauthorized Actor in semantic-release

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.80%, higher than 79% of CVEs (2026-12-01)
- Published: 2022-06-09T20:05:12.000Z
- Modified: 2026-06-17T04:44:41.470Z
- Also known as: GHSA-x2pg-mjhr-2m5x
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- semantic-release semantic-release: >= 17.0.4, < 19.0.3
- semantic-release (npm): from 17.0.4 before 19.0.3
- semantic-release_project semantic-release: from 17.0.4 before 19.0.3

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x> (third-party-advisory, web)
- <https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad> (patch, third-party-advisory, web)
- <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI> (third-party-advisory, web)
- <https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31051> (advisory)
- <https://github.com/semantic-release/semantic-release/pull/2449> (web)
- <https://github.com/semantic-release/semantic-release/pull/2459> (web)
- <https://github.com/semantic-release/semantic-release> (package)

## Sources

- CVE List: [CVE-2022-31051](https://www.cve.org/CVERecord?id=CVE-2022-31051), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-x2pg-mjhr-2m5x](https://github.com/advisories/GHSA-x2pg-mjhr-2m5x), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31051](https://nvd.nist.gov/vuln/detail/CVE-2022-31051), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31051 · Whole record: https://cve.day/CVE-2022-31051.json · Rebuilt by cve.day 2026-11-25T22:58:12.206Z
