CVE-2022-31051
Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.4
Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
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.
- Record
CVE-2022-31051- 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 - Weakness
- CWE-200
- Updated
- 2026-11-02
EUVDEUVD-2022-6180
4.4
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.
- Record
EUVD-2022-6180- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-x2pg-mjhr-2m5x
4.4
Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
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. 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?
- https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3
- 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
- Record
GHSA-x2pg-mjhr-2m5x- 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 - Weakness
- CWE-200
- Updated
- 2026-11-02
NVD
4.4
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.
- Record
CVE-2022-31051- 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 - 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 - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
OSV
4.4
Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
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.
- Record
CVE-2022-31051- 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 - Weakness
- CWE-200
- Updated
- 2026-11-02
OSVGHSA-x2pg-mjhr-2m5x
4.4
Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
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. 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?
- https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3
- 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
- Record
GHSA-x2pg-mjhr-2m5x- 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 - Weakness
- CWE-200
- Updated
- 2026-11-02
OSVRHSA-2022:5555
7.5
Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update
- Record
RHSA-2022:5555- 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 - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
semantic-releasenpm |
17.0.4 up to 19.0.3 | 19.0.3 |
ovirt-web-uiRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:1.9.0-1.el8ev | 0:1.9.0-1.el8ev |
ovirt-dependenciesRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:4.5.2-1.el8ev | 0:4.5.2-1.el8ev |
apache-commons-compressRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:1.21-1.2.el8ev | 0:1.21-1.2.el8ev |
apache-commons-compress-javadocRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:1.21-1.2.el8ev | 0:1.21-1.2.el8ev |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-31051 is a medium vulnerability (CVSS 4.4) in Semantic-release, published June 9, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.80%, the 78th percentile. Fixed in semantic-release 19.0.3.
References
github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x
github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI
github.com/semantic-release/semantic-release/releases/tag/v19.0.3
github.com/semantic-release/semantic-release/pull/2449
github.com/semantic-release/semantic-release/pull/2459
Show 74 moreShow less
nvd.nist.gov/vuln/detail/CVE-2022-31051
github.com/advisories/GHSA-x2pg-mjhr-2m5x
github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31051.json
github.com/semantic-release/semantic-release
access.redhat.com/errata/RHSA-2022:5555
access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/technical_notes
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1663217
bugzilla.redhat.com/show_bug.cgi?id=1782077
bugzilla.redhat.com/show_bug.cgi?id=1849045
bugzilla.redhat.com/show_bug.cgi?id=1852308
bugzilla.redhat.com/show_bug.cgi?id=1958032
bugzilla.redhat.com/show_bug.cgi?id=1966615
bugzilla.redhat.com/show_bug.cgi?id=1976607
bugzilla.redhat.com/show_bug.cgi?id=1981895
bugzilla.redhat.com/show_bug.cgi?id=1981900
bugzilla.redhat.com/show_bug.cgi?id=1981903
bugzilla.redhat.com/show_bug.cgi?id=1981909
bugzilla.redhat.com/show_bug.cgi?id=1994144
bugzilla.redhat.com/show_bug.cgi?id=2001574
bugzilla.redhat.com/show_bug.cgi?id=2001923
bugzilla.redhat.com/show_bug.cgi?id=2006625
bugzilla.redhat.com/show_bug.cgi?id=2007557
bugzilla.redhat.com/show_bug.cgi?id=2030293
bugzilla.redhat.com/show_bug.cgi?id=2068270
bugzilla.redhat.com/show_bug.cgi?id=2069414
bugzilla.redhat.com/show_bug.cgi?id=2070045
bugzilla.redhat.com/show_bug.cgi?id=2072626
bugzilla.redhat.com/show_bug.cgi?id=2081241
bugzilla.redhat.com/show_bug.cgi?id=2081559
bugzilla.redhat.com/show_bug.cgi?id=2089856
bugzilla.redhat.com/show_bug.cgi?id=2092885
bugzilla.redhat.com/show_bug.cgi?id=2093795
bugzilla.redhat.com/show_bug.cgi?id=2097414
bugzilla.redhat.com/show_bug.cgi?id=2099650
bugzilla.redhat.com/show_bug.cgi?id=2105296
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_5555.json
access.redhat.com/security/cve/CVE-2021-3807
cve.org/CVERecord?id=CVE-2021-3807
nvd.nist.gov/vuln/detail/CVE-2021-3807
huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
access.redhat.com/security/cve/CVE-2021-22096
bugzilla.redhat.com/show_bug.cgi?id=2034584
cve.org/CVERecord?id=CVE-2021-22096
nvd.nist.gov/vuln/detail/CVE-2021-22096
access.redhat.com/security/cve/CVE-2021-33623
cve.org/CVERecord?id=CVE-2021-33623
nvd.nist.gov/vuln/detail/CVE-2021-33623
access.redhat.com/security/cve/CVE-2021-35515
cve.org/CVERecord?id=CVE-2021-35515
nvd.nist.gov/vuln/detail/CVE-2021-35515
openwall.com/lists/oss-security/2021/07/13/1
commons.apache.org/proper/commons-compress/security-reports.html
lists.apache.org/thread.html/r19ebfd71770ec0617a9ea180e321ef927b3fefb4c81ec5d1902d20ab%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2021-35516
cve.org/CVERecord?id=CVE-2021-35516
nvd.nist.gov/vuln/detail/CVE-2021-35516
openwall.com/lists/oss-security/2021/07/13/2
lists.apache.org/thread.html/rf68442d67eb166f4b6cf0bbbe6c7f99098c12954f37332073c9822ca%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2021-35517
cve.org/CVERecord?id=CVE-2021-35517
nvd.nist.gov/vuln/detail/CVE-2021-35517
openwall.com/lists/oss-security/2021/07/13/3
lists.apache.org/thread.html/r605d906b710b95f1bbe0036a53ac6968f667f2c249b6fbabada9a940%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2021-36090
cve.org/CVERecord?id=CVE-2021-36090
nvd.nist.gov/vuln/detail/CVE-2021-36090
openwall.com/lists/oss-security/2021/07/13/4
lists.apache.org/thread.html/rc4134026d7d7b053d4f9f2205531122732405012c8804fd850a9b26f%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2022-22950
cve.org/CVERecord?id=CVE-2022-22950
nvd.nist.gov/vuln/detail/CVE-2022-22950
access.redhat.com/security/cve/CVE-2022-31051
cve.org/CVERecord?id=CVE-2022-31051