logo

npm 12 Disables Install Scripts by Default to Reduce Supply Chain Risk

ID: a65866ae-4015-5ed4-8032-3cfe7a4fa007

STIX ID: report--a65866ae-4015-5ed4-8032-3cfe7a4fa007

Feed Name: The Hacker News

Date Published: 2026-07-09

Date Updated: 2026-07-18

Author: [email protected] (The Hacker News)

...
...

GitHub announced npm v12 will disable dependency install scripts by default and require explicit allowlists for running lifecycle scripts, while limiting granular access tokens that bypass 2FA (removing many management and direct publish capabilities) and advising migration to trusted publishing (OIDC) or staged publishes. The note also highlights pnpm's new _auth setting to bind credentials to their host, reducing the risk of stolen tokens via tampered project files.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.