NPM Git dependency .npmrc code execution bypass security flaw
Vulnerability
Updated: 26.01.2026 16:02
· First: 26.01.2026 16:02
· 📰 3 src / 4 articles
· H score: 37
NPM's Git dependency install path can be bypassed by a malicious .npmrc, allowing full code execution even when --ignore-scripts=true is enabled. The flaw weakens Git repository install defenses and sits within the broader PackageGate set of JavaScript package-manager issues. GitHub's npm v12 adds a separate mitigation path by making install-time execution and non-registry sources require explicit approval, reducing abuse of preinstall/install/postinstall scripts, node-gyp builds, Git-based dependencies, and remote URL dependencies.