# CVE-2020-15095: npm CLI information exposure through logs

Source: https://junglewise.ai/threats/cve-2020-15095-npm-cli-information-exposure-through-logs  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-07-07. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2020-15095 · Severity: low · CVSS 3.1 · Published 2020-07-07

The npm CLI package manager inadvertently logs unredacted authentication credentials when processing registry URLs containing embedded passwords. An attacker with local access to log files could extract these credentials and gain unauthorized access to private npm packages or registries, potentially compromising supply chain security and sensitive development resources.

Technologies: [npm (npm)](https://junglewise.ai/threats/technologies/npm). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2020-15095 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-15095 being exploited in the wild.

**How severe is CVE-2020-15095?** Low severity, with a CVSS score of 3.1, published 7 July 2020.

**Which products and versions are affected?** npm (npm) prior to 6.14.6.

**Is there a fix for CVE-2020-15095?** A patch was published on 2020-07-07: version 6.14.6 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2020-15095 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2020-15095?** Check whether you run npm (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is an information exposure flaw (CWE-532) in npm CLI versions prior to 6.14.6. The CLI fails to redact password values from URLs matching the pattern &lt;protocol&gt;://[&lt;user&gt;[:&lt;password&gt;]@]&lt;hostname&gt;[:&lt;port&gt;][:][/]&lt;path&gt;. Credentials are exposed both to stdout and in log files generated by the tool. Attack requires local file system access to read generated logs. An attacker can retrieve plaintext authentication credentials and use them for unauthorized package registry access. The vulnerability was patched in version 6.14.6.

## Affected products

- npm npm prior to 6.14.6

## Identifiers

- CVE-2020-15095
- GHSA-93f3-23rq-pjfp

## Timeline

- 2020-07-07: disclosed
- 2020-07-07: patched: version 6.14.6 released

## References

- [https://github.com/npm/cli/security/advisories/GHSA-93f3-23rq-pjfp](https://github.com/npm/cli/security/advisories/GHSA-93f3-23rq-pjfp)

## Related threats

- [npm cli local privilege escalation via uncontrolled module search path](https://junglewise.ai/threats/cve-2026-0775-npm-cli-local-privilege-escalation-via-uncontrolled-module-search)
- [npm pack root-level ignore file bypass in workspaces](https://junglewise.ai/threats/cve-2022-29244-npm-pack-root-level-ignore-file-bypass-in-workspaces)
- [npm incorrect permission assignment in mkdir](https://junglewise.ai/threats/cve-2018-7408-npm-incorrect-permission-assignment-in-mkdir)
- [npm Arborist symlink following on case-insensitive filesystems](https://junglewise.ai/threats/cve-2021-39134-npm-arborist-symlink-following-on-case-insensitive-filesystems)
- [npm public path traversal via symlink navigation](https://junglewise.ai/threats/npm-public-path-traversal-via-symlink-navigation-dd9ade29)
