CVE-2019-16776CWE-22

Unauthorized File Access in npm CLI before before version 6.13.3

High · published December 13, 2019

CVSS v3.1
7.7
EPSS
3%
Percentile
88.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.7 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.03422 · 88.8th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2019-12-13T00:55Z
EPSS history
Timeline
  • 13 DEC 00:55Z
    Unauthorized File Access in npm CLI before before version 6.13.3
    cvelistv5