Live threats

All CVEs / Npmjs

CVE-2019-16777Npmjs Npm

Medium 6.5

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
Weakness (CWE)
CWE-22, CWE-269
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Npm.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
npmjsnpm< 6.13.4
opensuseleap15.1
oraclegraalvm19.3.0.2
fedoraprojectfedora31
redhatenterprise_linux8.0
redhatenterprise_linux_eus8.1

Official sources

References

Links published by the sources. Open them with care.