7.7
CWE
61 59
Advisory Published
Updated

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

First published: Fri Dec 13 2019(Updated: )

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 thenode_modules 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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
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

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.

Frequently Asked Questions

  • 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.

  • 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.

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

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

  • How can I fix CVE-2019-16775?

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

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203