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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-06-09 · Modified: 2025-04-23
- Aliases: GHSA-x2pg-mjhr-2m5x
- Record: https://cvemate.com/vulnerability/CVE-2022-31051 · JSON: https://cvemate.com/vulnerability/CVE-2022-31051/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.798%, percentile 79.225%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm semantic-release (Npm): ≥ 17.0.4, \< 19.0.3
- semantic-release\_project semantic-release: ≥ 17.0.4, \< 19.0.3
- semantic-release semantic-release: ≥ 17.0.4, \< 19.0.3

## References

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

---

Data as of 2026-12-05T08:40:56.610Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
