Executive Summary
npm 12 disables install scripts by default and deprecates 2FA-bypassing granular access tokens.
What Happened
GitHub has officially announced the release of npm version 12 with install scripts disabled by default, along with deprecating granular access tokens (GATs) designed to bypass two-factor authentication (2FA). The Microsoft-owned subsidiary noted that the following npm install behaviors that used to run automatically before have been made opt-in - allowScripts defaults to off, meaning
Affected Products
- npm
Vulnerability / Attack Technique
Not applicable (security feature)
Technical Mechanism
Default change.
AI Security Category
Not AI-specific
RealGround Analysis
Supply chain hardening.
Recommended Controls
- Upgrade to npm 12
Related RealGround Service
AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.
Sources
thehackernews.com: https://thehackernews.com/2026/07/npm-12-disables-install-scripts-by.html
Summary and analysis written by RealGround from the source above; last updated 2026-10-18.
