CVE-2019-16777 HIGH

CVE-2019-16777: Arbitrary File Overwrite in npm CLI

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.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also 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