CVE-2022-31051

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

Published Jun 9, 2022 CVSS 3.1 · 4.4 Medium EPSS 1.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6180 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.
Github GHSA Github GHSA GHSA-x2pg-mjhr-2m5x Exposure of Sensitive Information to an Unauthorized Actor in semantic-release
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00477}

epss

{'score': 0.00534}

Type Values Removed Values Added
Metrics epss

{'score': 0.00454}

epss

{'score': 0.00477}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 23, 2025, 6:17 PM
Reserved
May 18, 2022, 12:00 AM
Status
Modified
Published
Jun 9, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:44 AM
Severity
Moderate
Public date
Jun 9, 2022, 12:00 AM