CVE Catalog

CVE-2019-16775

HighCVSS 7.7
Published: Updated: Translated: NVD NIST

Summary

npm CLI versions prior to 6.13.3 are vulnerable to Arbitrary File Write. Packages can create symlinks to files outside node_modules via the bin field in package.json during installation, bypassing the --ignore-scripts option.

Risk Assessment

A malicious package publisher could overwrite or create symlinks to arbitrary files on the user's system, potentially leading to code execution or system compromise.

Recommendation

Update npm CLI to version 6.13.3 or later. Install packages only from trusted sources and verify their contents.

Other vulnerabilities in npm CLI

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS