CVE-2019-16775 HIGH

CVE-2019-16775: Unauthorized File Access in npm CLI before before version 6.13.3

Vendor Npm
Product cli
Weakness CWE-61
Published December 13, 2019
Last update August 5, 2024

CVSS base score

7.7/10
Attack vector Network
Attack complexity High
Privileges required Low
User interaction Required
Confidentiality High
Integrity High

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

December 13, 2019 CVE published
August 5, 2024 Record updated