8.1
CWE
22 20
Advisory Published
CVE Published
Updated

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

First published: Thu Dec 12 2019(Updated: )

Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It fails to prevent access to folders outside of the intended node_modules folder through the bin field. A properly constructed entry in the package.json bin field would allow a package publisher to create files on a user's system when the package is installed. It is only possible to affect files that the user running npm install has access to and it is not possible to overwrite files that already exist on disk. References: <a href="https://www.npmjs.com/advisories/1434">https://www.npmjs.com/advisories/1434</a> <a href="https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/">https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/</a> <a href="https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli">https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli</a>

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
redhat/rh-nodejs10-nodejs<0:10.19.0-1.el7
0:10.19.0-1.el7
redhat/rh-nodejs12-nodejs<0:12.16.1-1.el7
0:12.16.1-1.el7
redhat/rh-nodejs8-nodejs<0:8.17.0-2.el7
0:8.17.0-2.el7
Npmjs Npm<6.13.3
openSUSE Leap=15.1
Oracle GraalVM=19.3.0.2
Fedoraproject Fedora=31
Redhat Enterprise Linux=8.0
Redhat Enterprise Linux Eus=8.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID for this issue?

    The vulnerability ID for this issue is CVE-2019-16776.

  • What is the severity of CVE-2019-16776?

    The severity of CVE-2019-16776 is high (8.1).

  • Which versions of the npm CLI are affected?

    Versions of the npm CLI prior to 6.13.3 are affected.

  • How can I fix CVE-2019-16776?

    To fix CVE-2019-16776, make sure to update the npm CLI to version 6.13.3 or later.

  • Where can I find more information about CVE-2019-16776?

    More information about CVE-2019-16776 can be found at the following references: [npm advisory](https://www.npmjs.com/advisories/1434), [Node.js blog](https://nodejs.org/en/blog/vulnerability/december-2019-security-releases/), [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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203