cbcvebase.
CVE-2019-16776
published 2019-12-13

CVE-2019-16776: 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…

PriorityP352high8.1CVSS 3.1
AVNACLPRLUINSUCHIHAN
EPSS
3.34%
87.3th percentile
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.

Affected

13 ranges
VendorProductVersion rangeFixed in
debiannpm< npm 6.13.4+ds-2 (bookworm)npm 6.13.4+ds-2 (bookworm)
fedoraprojectfedora
npmcli< 6.13.36.13.3
npmjsnpm< 6.13.36.13.3
npmjsnpm>= 0 < 6.13.4+ds-26.13.4+ds-2
npmjsnpm>= 0 < 6.13.4+ds-26.13.4+ds-2
npmjsnpm>= 0 < 6.13.4+ds-26.13.4+ds-2
npmjsnpm>= 0 < 6.13.4+ds-26.13.4+ds-2
npmjsnpm>= 0 < 6.13.36.13.3
opensuseleap
oraclegraalvm
redhatenterprise_linux
redhatenterprise_linux_eus

CVSS provenance

nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
nvdv2.05.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:N
osv8.1HIGH
vendor_oracle8.1HIGH
vendor_debian7.7HIGH
vendor_redhat7.7HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.