npm
Node.js package manager abuse techniques
high
Dependency Confusion
Dependency Confusion
Dependency confusion exploits the way npm resolves package names by publishing a public package with the same name as a private, …
Linux
macOS
Windows
high
Code Execution
Lifecycle Script Abuse
npm packages can define lifecycle scripts such as preinstall, install, postinstall, and prepare. npm 11 and earlier normally ran dependency …
Linux
macOS
Windows
medium
Configuration Abuse
.npmrc Manipulation
.npmrc files control npm behavior including registry URLs, authentication, TLS checks, and install-policy settings. An attacker with write …
Linux
macOS
Windows
high
Code Execution
npx Remote Execution
npx can install a package into the npm cache and execute its declared binary without adding it to the current project's dependencies. In npm …
Linux
macOS
Windows
critical
Supply Chain
Package Hijacking
Package hijacking occurs when an attacker gains control of a legitimate maintainer's npm publishing authority and publishes trojanized …
Linux
macOS
Windows