Privilege escalation in Npm Cli

CVE-2019-16777

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.

Vulnerability class: Path Traversal (Directory Traversal)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.

EPSS exploit prediction

EPSS: 0.021 (81.9th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2019-16777: held from 0.021 to 0.021.

EPSS over last 30 days · oldest: 0.021 · newest: 0.021 · change: 0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-16777?
CVE-2019-16777 is a high-severity vulnerability in Npm Cli, classified under Path Traversal. CVSS score: 7.7/10. Published 2019-12-13.
How severe is CVE-2019-16777?
High severity. CVSS v3 base score is 7.7 out of 10.