CVE-2019-16775

Unauthorized File Access in npm CLI before before version 6.13.3

State
Published
Severity
7.7 High
Published
Dec 13, 2019
Updated
Aug 5, 2024
Reserved
Sep 24, 2019

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.7 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NGitHub_M

Weaknesses

  • CWE-61 UNIX Symbolic Link (Symlink) Following

Affected Products

ProductVersions
clinpm
  • < 6.13.3 to before 6.13.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.