#6
The Hacker News
general
June 11, 2026 at 06:23 UTC
GitHub to Disable npm Install Scripts by Default to Stop Supply Chain Attacks
By [email protected] (The Hacker News)
AI Summary
GitHub announced that npm v12 — expected next month — will disable install scripts by default, directly blocking a primary supply chain attack vector where malicious code executes via npm lifecycle hooks during 'npm install'. This is a breaking change affecting many packages that rely on postinstall scripts, meaning developers will need to audit dependencies before upgrading. The move comes amid ongoing supply chain attacks including the brief GitHub leak of the Miasma credential-stealing framework source code.
Relevance score: 82.0/100
Sponsored
Protect Your Business
Expert cybersecurity solutions to safeguard your organization from evolving threats.
Get Protected →