CVE-2019-16776 HIGH

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

Vendor Npm
Product cli
Weakness CWE-22 · Path traversal
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 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.

Key dates

02Disclosure timeline

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