NPM 12 will block malicious install scripts by default
GitHub is shipping a meaningful supply chain defence into NPM (Node Package Manager — the tool developers use to install software packages for JavaScript projects) with version 12, due in July.
Currently, packages can run code automatically the moment a developer installs them — before anyone has reviewed what that code does. Attackers have been exploiting this behaviour for months, including through a self-replicating worm called Shai-Hulud that spread malware across thousands of developer environments. A supply chain attack (targeting the tools developers use rather than end users directly) is particularly damaging because it poisons software at the point of creation.
From NPM 12 onwards, those install scripts will be blocked by default unless explicitly allowed. If your team builds with JavaScript, brief them before July and audit which packages currently rely on automatic scripts.
Sources

