CVE Database›CVE-2022-31051

CVE-2022-31051

semantic-release: Masked secrets can be disclosed if they contain characters that are excluded from uri encoding

Loading…

Severity

Moderate

Red Hat Product Security

7.5

CVSS 3.1

Review impact separately from score.

Published · June 9, 2022

Updated · November 22, 2025

Description

A vulnerability was found in semantic-release. Secrets that are normally masked are accidentally disclosed if they contain characters excluded from uri encoding by encodeURI(). The vulnerability is further limited to execution contexts where push access to the related repository is unavailable without modifying the repository URL to inject credentials.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Users should ensure that secrets that do not contain characters that are excluded from encoding with encodeURI when included in a URL that is already masked properly.

CVSS / CWE

CVSS 3.1 · 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CWE-212 · Improper Removal of Sensitive Information Before Storage or Transfer