Vulnerability · Published Jun 9, 2022 · Assigned by GitHub_M

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

Medium 4.4

In plain English

A medium-severity information exposure in semantic-release from semantic-release. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)1.8%top 21.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmsemantic-release19.0.3GHSA-x2pg-mjhr-2m5x

Affected products (as reported)

VendorProductVersions
semantic-release semantic-release >= 17.0.4, < 19.0.3

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N

References