CVE-2019-16777Npmjs Npm
Medium 6.5
Follow: this CVE · Npmjs · Npmjs Npm We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 82
- Auth required
- Yes
- Published
- Dec 13, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Npm.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | npm |
< 6.13.4 |
6.13.4 |
npm install npm@6.13.4 |
Per OSV / GitHub Advisories (GHSA-4328-8hgf-7wjr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- blog.npmjs.org Third Party Advisory
- github.com Third Party Advisory
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- www.oracle.com Third Party Advisory