Vulnerabilities · 2019 · Npmjs
CVE-2019-16776
Npmjs Npm vulnerability
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 modify and/or gain access 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.
Affected products
Npm, Leap, Graalvm, Fedora, Enterprise Linux, Enterprise Linux Eus. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Npmjs Npm runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html · Third Party Advisory
- access.redhat.com/errata/RHEA-2020:0330 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0573 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0579 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0597 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0602 · Third Party Advisory
- blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli · Third Party Advisory
- github.com/npm/cli/security/advisories/GHSA-x8qc-rrcw-4r46 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-16776
- cve.org/CVERecord?id=CVE-2019-16776
More vulnerabilities in Npmjs products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.