CVE-2019-16776: high-severity vulnerability in npm cli
Unauthorized File Access in npm CLI before before version 6.13.3
Published · Updated
No sign of exploitation. No public exploitation artifact known so far.
npm versions before 6.13.3 allow malicious packages to write files anywhere on your system during installation, not just in the project folder. An attacker can craft a package that modifies or accesses your personal files when you install it.
The npm CLI fails to properly validate the bin field in package.json, allowing path traversal (CWE-22) that bypasses the node_modules directory boundary. A malicious package can write arbitrary files to the filesystem during installation; this vulnerability persists even with --ignore-scripts flag due to alternative execution vectors like install scripts.
In the same product, most dangerous first.