CVE-2020-15095: npm CLI exposing sensitive information through logs

npm Updated 02 Oct 2025

Summary

07/07/2020
Yes i
Moderate
4.4

CVE-2020-15095: npm CLI exposing sensitive information through logs. Affects npm versions < 6.14.6. Fixed in 6.14.6. How to fix ↓

Also tracked for

The same CVE-2020-15095 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The npm CLI is a command-line tool used for managing packages in the npm ecosystem. It allows users to install, publish, and manage dependencies for their Node.js projects. The CLI supports URLs with authentication credentials, including a password value. However, versions prior to 6.14.6 have a vulnerability that exposes this password information through log files. When the CLI is executed, the password is printed to the standard output (stdout) and also saved in any generated log files.

Vulnerability Detail

The vulnerability in the npm CLI allows sensitive information, specifically passwords, to be exposed through log files. This can have serious security implications as it allows unauthorized access to systems or accounts that rely on these passwords. An attacker with access to the log files can easily retrieve the exposed passwords and use them for malicious purposes. It is important to note that the password value is not redacted or obfuscated in any way, making it easily readable in plain text.

How To Fix

Latest published version: 12.2.1 as of 22 Oct 2026

npm install npm@12.2.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.14.6

This is the first release that contains the fix.

npm install npm@6.14.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, users can avoid using URLs with authentication credentials that include a password value when using the npm CLI. Instead, it is recommended to use alternative methods for providing authentication, such as environment variables or configuration files. By removing the password from the URL, the vulnerability is mitigated as the sensitive information is no longer exposed through log files.

Conclusion

The vulnerability in the npm CLI that exposes sensitive information through log files can have serious security implications. It is crucial to update to version 6.14.6 or later to fix this issue and prevent unauthorized access to systems or accounts. Regular monitoring and securing of log files, as well as implementing strong password management practices, are also recommended. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for npm →

Share this vulnerability

FAQ

The impact of this vulnerability is the exposure of sensitive information, specifically passwords, through log files. This can lead to unauthorized access to systems or accounts that rely on these passwords.

You can check your npm CLI version by running the command 'npm -v' in your terminal. If the version is prior to 6.14.6, it is vulnerable to this issue.

No, this vulnerability requires local access to the log files in order to retrieve the exposed passwords. However, it is still a serious security concern as it can lead to unauthorized access.

There are no known instances of this vulnerability being exploited in the wild. However, it is recommended to update to the fixed version as a precautionary measure.

In addition to updating the npm CLI, it is recommended to regularly monitor and secure log files to prevent unauthorized access. Implementing strong password management practices and using alternative methods for authentication can also help mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for npm.

How To Fix

Latest published version: 12.2.1 as of 22 Oct 2026

npm install npm@12.2.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.14.6

This is the first release that contains the fix.

npm install npm@6.14.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback