Live threats

All CVEs / Npmjs

CVE-2019-16776Npmjs Npm

High 8.1

Priority
49
CVSS 3.1
8.1
EPSS
3.4%
probability of exploitation in 30 days · percentile 90
Auth required
Yes
Published
Dec 13, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

What happens

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.

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.3 6.13.3 npm install npm@6.13.3

Per OSV / GitHub Advisories (GHSA-x8qc-rrcw-4r46). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
npmjsnpm< 6.13.3
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.