CVE-2019-16776

HIGHCVSS 8.1/10EPSS 3.34%

Last modified

CVE-2019-16776 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 3.34% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
8.1/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

EPSS Probability
3.34%

87.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
NpmjsNpm< 6.13.3
OpensuseLeap15.1
OracleGraalvm19.3.0.2
FedoraprojectFedora31
RedhatEnterprise Linux8.0
RedhatEnterprise Linux Eus8.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2019-16776?
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.
How severe is CVE-2019-16776?
CVE-2019-16776 has a CVSS score of 8.1/10 (HIGH severity). The EPSS model estimates a 3.34% probability of exploitation in the next 30 days.
How do I fix CVE-2019-16776?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2019-16776?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST