CVE Database›Document archive›CVE-2020-15095

CVE-2020-15095

npm: sensitive information exposure through logs

Loading…

Severity

Moderate

Red Hat Product Security

4.4

CVSS 3.1

Review impact separately from score.

Published · July 7, 2020

Updated · June 28, 2026

Description

Versions of the npm CLI prior to 6.14.6 are vulnerable to an information exposure vulnerability through log files. The CLI supports URLs like "<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>". The password value is not redacted and is printed to stdout and also to any generated log files.

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

Do not provide a password to npm via the cli to avoid it from being entered into the logs and stdout, or use ssh instead.

CVSS / CWE

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

CWE-532 · Insertion of Sensitive Information into Log File