CVE-2019-16775: Unauthorized File Access in npm CLI before before version 6.13.3

Published Dec 13, 2019
·
Updated

Versions of the npm CLI prior to 6.13.3 are vulnerable to a symlink reference outside of nodemodules. It is possible for packages to create symlinks to files outside of the nodemodules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing to arbitrary files on a user’s system when the package is installed. Only files accessible by the user running the npm install are affected.

References:

https://www.npmjs.com/advisories/1436 https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/ https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli

Other sources

Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It is possible for packages to create symlinks to files outside of thenodemodules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing to arbitrary files on a user's system when the package is installed. This behavior is still possible through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

MITRE

Affected Software

13 affected componentsFixes available
redhat/npm<6.13.3
6.13.3
redhat/nodejs<8.17.0
8.17.0
redhat/nodejs<10.18.0
10.18.0
redhat/nodejs<12.14.0
12.14.0
redhat/nodejs<13.4.0
13.4.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux Eus=8.1
npmjs npm<6.13.3
openSUSE Leap=15.1
Oracle GraalVM=19.3.0.2
Oracle GraalVM=20.3.3
Oracle GraalVM=21.2.2
Fedoraproject Fedora=31

Event History

Dec 13, 2019
CVE Published
via MITRE·12:55 AM
Data Sourced
via MITRE·12:55 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2019-16775?

CVE-2019-16775 is a vulnerability in versions of the npm CLI prior to 6.13.3 that allows for an arbitrary file write.

2

How does CVE-2019-16775 work?

CVE-2019-16775 allows packages to create symlinks to files outside of the node_modules folder through the bin field upon installation.

3

What is the severity of CVE-2019-16775?

CVE-2019-16775 has a severity value of 6.5, which is considered high.

4

How can I fix CVE-2019-16775?

To fix CVE-2019-16775, you should update to npm CLI version 6.13.3 or later.

5

Where can I find more information about CVE-2019-16775?

You can find more information about CVE-2019-16775 in the npm advisory and the Node.js blog post linked in the references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203