npm 12 disables install scripts by default, requiring explicit approval to reduce dependency-based code execution risks.
GitHub’s actions/checkout v7 now blocks risky fork PR checkouts in privileged workflows to reduce common pwn request attacks.
In response to recent software supply chain attacks, NPM version 12 is blocking the automatic script execution at install.
The change, expected in July, will likely block one of the more common attack vectors; developers are wondering what took GitHub so long, and why other repositories acted so much sooner.
July 2026, blocking install scripts, Git dependencies, and remote URL sources by default. Every team running npm install in ...
With npm v12, GitHub closes a central attack vector: installation scripts from dependencies will only run after explicit approval from July 2026.