Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GitHub announces npm security changes to tackle supply-chain attacks

0
Medium
Vulnerability
Published: Wed Jun 10 2026 (06/10/2026, 19:41:44 UTC)
Source: Bleeping Computer

Description

GitHub announced that npm version 12 will introduce security changes to reduce supply-chain attacks by requiring explicit approval for running install scripts and fetching dependencies from Git or remote URLs during 'npm install'. These changes prevent automatic execution of potentially malicious code during package installation. Developers relying on current behaviors must explicitly opt in to continue them. Upgrading to npm 11. 16. 0 or newer is recommended to identify breaking changes before moving to version 12.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/10/2026, 19:44:14 UTC

Technical Analysis

GitHub plans to release npm v12 with security enhancements that block supply-chain attacks exploiting automatic behaviors during 'npm install'. Specifically, npm v12 will not run preinstall, install, or postinstall scripts from dependencies unless explicitly approved, including native module builds and prepare scripts from Git, local file, and linked dependencies. Additionally, npm install will no longer fetch dependencies from Git repositories or remote URLs unless explicitly permitted. These changes remove automatic code execution paths and dependency resolutions that have been abused in recent supply-chain attacks. Developers are advised to upgrade to npm 11.16.0 or later to receive warnings about actions that will break under npm v12 and prepare accordingly.

Potential Impact

The changes in npm v12 reduce the risk of supply-chain attacks by disabling automatic execution of install scripts and automatic fetching of dependencies from Git and remote URLs without explicit approval. This mitigates attack vectors used in recent campaigns involving malicious install scripts and Git dependency abuse. However, projects relying on these behaviors for legitimate purposes will need to explicitly opt in, potentially requiring workflow adjustments.

Mitigation Recommendations

GitHub recommends upgrading to npm version 11.16.0 or newer to receive warnings about behaviors that will be blocked in npm v12. This allows developers to identify dependencies and workflows needing explicit approval before upgrading. After upgrading to npm v12, only explicitly approved install scripts and dependency sources will run automatically. Developers should review and approve necessary scripts and dependency sources to maintain functionality while benefiting from enhanced security.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Article Source
{"url":"https://www.bleepingcomputer.com/news/security/github-announces-npm-security-changes-to-tackle-supply-chain-attacks/","fetched":true,"fetchedAt":"2026-06-10T19:44:07.689Z","wordCount":710}

Threat ID: 6a29be870e53e7388383a089

Added to database: 6/10/2026, 7:44:07 PM

Last enriched: 6/10/2026, 7:44:14 PM

Last updated: 6/10/2026, 9:40:01 PM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses