Vulnerabilities · 2019 · Npmjs
CVE-2019-16777
Npmjs Npm vulnerability
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.
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-4328-8hgf-7wjr · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-16777
- cve.org/CVERecord?id=CVE-2019-16777
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.