CVE-2019-16775

MEDIUMCVSS 6.5/10EPSS 3.27%

Last modified

CVE-2019-16775 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation. EPSS estimates a 3.27% 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 is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing 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
6.5/10

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

EPSS Probability
3.27%

86.8th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RedhatEnterprise Linux8.0
RedhatEnterprise Linux Eus8.1
NpmjsNpm< 6.13.3
OpensuseLeap15.1
OracleGraalvm19.3.0.2
OracleGraalvm20.3.3
OracleGraalvm21.2.2
FedoraprojectFedora31

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2019-16775?
Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing 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-16775?
CVE-2019-16775 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 3.27% probability of exploitation in the next 30 days.
How do I fix CVE-2019-16775?
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-16775?

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

Scan your code now

Source: NVD / NIST