Home / Jun 15, 2026 / Story
0
#2 SecurityWeek general June 13, 2026 at 15:52 UTC

NPM 12 Will Change Script Execution Behavior to Prevent Supply Chain Attacks

By Ionut Arghire

AI Summary

NPM 12 will change the default behavior of 'npm install' to block automatic script execution from dependencies, a significant hardening measure targeting a well-documented supply chain attack vector. Developers and security teams managing JavaScript pipelines will need to explicitly allowlist packages requiring install scripts. This addresses a long-standing risk class exploited in attacks such as the event-stream compromise and numerous malicious npm package campaigns.

Relevance score: 78.0/100

# More from June 15

  1. 7
    Upcoming Speaking Engagements Schneier on Security