Live threats

All CVEs / Semantic-release Project

CVE-2022-31051Semantic-release Project Semantic-release

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Jun 9, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Semantic-release.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm semantic-release ≥ 17.0.4 < 19.0.3 19.0.3 npm install semantic-release@19.0.3

Per OSV / GitHub Advisories (GHSA-x2pg-mjhr-2m5x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
semantic-release_projectsemantic-release≥ 17.0.4 < 19.0.3

Official sources

References

Links published by the sources. Open them with care.