CVE-2019-16775

CVSS v3.1 6.5 (Medium)
65% Progress
CVSS v2.0 4 (Medium)
40% Progress
EPSS 0.18 % (56th)
0.18% Progress
Affected Products 6
Advisories 16

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.

Weaknesses
CWE-59
Improper Link Resolution Before File Access ('Link Following')
CWE-61
UNIX Symbolic Link (Symlink) Following
CVE Status
PUBLISHED
CNA
GitHub, Inc.
Published Date
2019-12-13 01:15:10
(4 years ago)
Updated Date
2023-11-07 03:05:43
(10 months ago)

Affected Products

Loading...
Loading...
Loading...

Configuration #1

    CPE23 From Up To
  Redhat Enterprise Linux 8.0 cpe:2.3:o:redhat:enterprise_linux:8.0
  Redhat Enterprise Linux Eus 8.1 cpe:2.3:o:redhat:enterprise_linux_eus:8.1

Configuration #2

    CPE23 From Up To
  Npmjs Npm prior 6.13.3 version cpe:2.3:a:npmjs:npm < 6.13.3

Configuration #3

    CPE23 From Up To
  Opensuse Leap 15.1 cpe:2.3:o:opensuse:leap:15.1

Configuration #4

    CPE23 From Up To
  Oracle Graalvm 19.3.0.2 cpe:2.3:a:oracle:graalvm:19.3.0.2:*:*:*:enterprise
  Oracle Graalvm 20.3.3 cpe:2.3:a:oracle:graalvm:20.3.3:*:*:*:enterprise
  Oracle Graalvm 21.2.2 cpe:2.3:a:oracle:graalvm:21.2.2:*:*:*:enterprise

Configuration #5

    CPE23 From Up To
  Fedoraproject Fedora 31 cpe:2.3:o:fedoraproject:fedora:31
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...