---
title: "GHSA-x2pg-mjhr-2m5x: Exposure of Sensitive Information to an Unauthorized Actor in semantic-release"
description: "Moderate severity. Exposure of Sensitive Information to an Unauthorized Actor in semantic-release. Affects semantic-release; fixed in 19.0.3."
url: https://inlinr.com/advisories/GHSA-x2pg-mjhr-2m5x
lang: en
---

[Packages](https://inlinr.com/packages) / [semantic-release](https://inlinr.com/packages/semantic-release) / [Security](https://inlinr.com/packages/semantic-release/security)

Moderate Vulnerability GHSA-x2pg-mjhr-2m5x CVE-2022-31051 Published 9 Jun 2022

# Exposure of Sensitive Information to an Unauthorized Actor in semantic-release

Your version 

Affected releases · [semantic-release](https://inlinr.com/packages/semantic-release)

- 19.x 19.0.0 – 19.0.2 Fixed in 19.0.3
- 18.x and older 17.0.4 – 18.0.1 No fix, no longer updated

On 19.x, the newest line:

```
npm install semantic-release@19.0.3
```

Every release on a timeline

26.x 

1. Not affected

26.0.0 – 26.0.1  
2 releases, latest

19.x 

1. Affected

19.0.0 – 19.0.2  
3 releases
2. Fixed

19.0.3 – 19.0.5  
3 releases

18.x 

1. Affected

18.0.0 – 18.0.1  
2 releases

17.x 

1. Not affected

17.0.0 – 17.0.3  
4 releases
2. Affected

17.0.4 – 17.4.7  
31 releases

352 stable releases of semantic-release, oldest to newest, one row per major.

## What happens

Impact

_What kind of vulnerability is it? Who is impacted?_

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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global%5FObjects/encodeURI "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/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.

Patches

_Has the problem been patched? What versions should users upgrade to?_

Fixed in 19.0.3

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

Secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.

References

_Are there any links users can visit to find out more?_

- [github.com/semantic-release/semantic-release/re…](https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3 "https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3")
- [developer.mozilla.org/en-US/docs/Web/JavaScript…](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global%5FObjects/encodeURI "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI")

For more information

If you have any questions or comments about this advisory:

- Open a discussion in [semantic-release discussions](https://github.com/semantic-release/semantic-release/discussions "https://github.com/semantic-release/semantic-release/discussions")

## How it is exploited

Exploitable over the network, with an admin account and no action from a user.

- **Confidentiality**: high
- **Integrity**: none
- **Availability**: none

CVSS:3.1/​AV:N/​AC:H/​PR:H/​UI:N/​S:U/​C:H/​I:N/​A:N

## References

- [Reference](https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x "https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x")  
github.com/semantic-release/semantic-release/se…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-31051 "https://nvd.nist.gov/vuln/detail/CVE-2022-31051")  
nvd.nist.gov/vuln/detail/CVE-2022-31051
- [Pull request](https://github.com/semantic-release/semantic-release/pull/2449 "https://github.com/semantic-release/semantic-release/pull/2449")  
#2449
- [Pull request](https://github.com/semantic-release/semantic-release/pull/2459 "https://github.com/semantic-release/semantic-release/pull/2459")  
#2459
- [Fix commit](https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad "https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad")  
58a226f
- [Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global%5FObjects/encodeURI "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI")  
developer.mozilla.org/en-US/docs/Web/JavaScript…
- [Package](https://github.com/semantic-release/semantic-release "https://github.com/semantic-release/semantic-release")  
github.com/semantic-release/semantic-release
- [Reference](https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3 "https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3")  
github.com/semantic-release/semantic-release/re…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
