CVE-2019-16777: Arbitrary File Overwrite in npm CLI

Published Dec 13, 2019
·
Updated

Versions of the npm CLI prior to 6.13.4 are vulnerable to a Global nodemodules Binary Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations.

References:

https://www.npmjs.com/advisories/1437 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.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

MITRE

Affected Software

11 affected componentsFixes available
redhat/npm<6.13.4
6.13.4
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
npmjs npm<6.13.4
openSUSE Leap=15.1
Oracle GraalVM=19.3.0.2
Fedoraproject Fedora=31
redhat Enterprise Linux=8.0
redhat Enterprise Linux Eus=8.1

Event History

Dec 13, 2019
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 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-16777?

CVE-2019-16777 is a vulnerability in versions of the npm CLI prior to 6.13.4 that allows for arbitrary file overwrite.

2

How severe is CVE-2019-16777?

CVE-2019-16777 is classified as high severity with a CVSS score of 6.5.

3

Which software versions are affected by CVE-2019-16777?

Versions prior to 6.13.4 of the npm CLI, 8.17.0, 10.18.0, 12.14.0, and 13.4.0 of Node.js, Npmjs Npm, openSUSE Leap, Oracle GraalVM, Fedora, and Redhat Enterprise Linux are affected.

4

How do I fix CVE-2019-16777?

To fix CVE-2019-16777, update to version 6.13.4 of the npm CLI or later.

5

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

You can find more information about CVE-2019-16777 on the npm advisory page (https://www.npmjs.com/advisories/1437), the Node.js blog (https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/), and the npm blog (https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli).

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