Skip to content
  • Home
  • Cyber Map
  • About Us – Contact
  • Disclaimer
  • Terms and Rules
  • Privacy Policy
Cyber Web Spider Blog – News

Cyber Web Spider Blog – News

Globe Threat Map provides a real-time, interactive 3D visualization of global cyber threats. Monitor DDoS attacks, malware, and hacking attempts with geo-located arcs on a rotating globe. Stay informed with live logs and archive stats.

  • Home
  • Cyber Map
  • Cyber Security News
  • Security Week News
  • The Hacker News
  • How To?
  • Toggle search form
GitHub’s NPM 12 Blocks Script Execution to Enhance Security

GitHub’s NPM 12 Blocks Script Execution to Enhance Security

Posted on June 13, 2026 By CWS

In a strategic move to fortify the NPM ecosystem against supply chain threats, GitHub has announced a crucial update to NPM’s behavior. Starting with version 12, releasing in July, NPM will no longer execute scripts from dependencies by default. This change comes in response to a series of security incidents that exploited the automatic script execution feature.

Addressing Recent Security Breaches

Recent months have witnessed significant security breaches, particularly involving the TeamPCP group and the self-replicating Shai-Hulud worm. These attacks leveraged the automatic execution of scripts during npm install to distribute malware widely. The upcoming NPM 12 aims to counter such vulnerabilities by blocking script execution unless explicitly permitted by the user.

GitHub has clarified that scripts, including preinstall, install, and postinstall, will not run automatically unless allowed in the project configuration. This measure extends to native node-gyp builds and prepare scripts from various sources, addressing key vulnerabilities exposed by the Shai-Hulud Miasma attacks.

Implementation and Developer Guidance

To assist developers in adapting to these changes, GitHub recommends using the npm approve-scripts –allow-scripts-pending command. This functionality allows developers to approve trusted packages and compile an allowlist, which is then written to the package.json file. Developers using NPM version 11.16.0 or above will receive warnings if their installations attempt to execute scripts without explicit permission.

Furthermore, Git dependencies will require explicit allowance during npm install, closing potential code-execution paths. This adjustment prevents Git dependencies’ .npmrc files from overriding Git executables, even with the –ignore-scripts flag active.

Future Security Enhancements

Looking forward, NPM version 12 will also address remote URL dependencies. HTTPS tarballs, whether direct or transitive, will not resolve by default. Developers can, however, permit these via the –allow-remote flag, which has been available since version 11.15.0.

GitHub encourages developers to upgrade to NPM 11.16.0 or later. By doing so, they can perform standard installations, review warnings, and use npm approve-scripts to manage script execution effectively. This proactive approach ensures that only approved scripts run, significantly enhancing security upon upgrading.

The changes introduced in NPM 12 are part of GitHub’s continuous efforts to bolster security in software development. By restricting automatic script execution, GitHub aims to mitigate risks and protect developers from emerging supply chain threats.

Security Week News Tags:dependency management, GitHub, node-gyp, NPM, script execution, security update, Shai-Hulud, software development, supply chain attacks, TeamPCP

Post navigation

Previous Post: China-Linked JDY Botnet Expands to Over 1,500 Devices
Next Post: Ivanti, Fortinet, SAP Address Critical Security Flaws

Related Posts

Geordie Emerges From Stealth With .5M for AI Agent Security Platform Geordie Emerges From Stealth With $6.5M for AI Agent Security Platform Security Week News
Red Teams Jailbreak GPT-5 With Ease, Warn It’s ‘Nearly Unusable’ for Enterprise Red Teams Jailbreak GPT-5 With Ease, Warn It’s ‘Nearly Unusable’ for Enterprise Security Week News
Critical Cisco ISE Vulnerabilities Allow Remote Code Execution  Critical Cisco ISE Vulnerabilities Allow Remote Code Execution  Security Week News
DC Health Data Breach Affects Nearly 400,000 Records DC Health Data Breach Affects Nearly 400,000 Records Security Week News
AppSignal Raises  Million for Application Monitoring Solution AppSignal Raises $22 Million for Application Monitoring Solution Security Week News
ICS Devices Bricked Following Russia-Linked Intrusion Into Polish Power Grid ICS Devices Bricked Following Russia-Linked Intrusion Into Polish Power Grid Security Week News

Categories

  • Cyber Security News
  • How To?
  • Security Week News
  • The Hacker News

Recent Posts

  • Exploit Targets WordPress Admin Sessions with PHP Backdoor
  • Cybersecurity Breach Disrupts New Mexico Hospital Operations
  • Cloudflare Updates WAF Rules Amid Brotli Vulnerability
  • PHP Updates Windows Builds to Address Critical HTTP2Shell Flaw
  • Emperador Ransomware Claims Data Breach at AB InBev

Pages

  • About Us – Contact
  • Disclaimer
  • Privacy Policy
  • Terms and Rules

Archives

  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025

Recent Posts

  • Exploit Targets WordPress Admin Sessions with PHP Backdoor
  • Cybersecurity Breach Disrupts New Mexico Hospital Operations
  • Cloudflare Updates WAF Rules Amid Brotli Vulnerability
  • PHP Updates Windows Builds to Address Critical HTTP2Shell Flaw
  • Emperador Ransomware Claims Data Breach at AB InBev

Pages

  • About Us – Contact
  • Disclaimer
  • Privacy Policy
  • Terms and Rules

Categories

  • Cyber Security News
  • How To?
  • Security Week News
  • The Hacker News

Copyright © 2026 Cyber Web Spider Blog – News.

Powered by PressBook Masonry Dark