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

HeroDevs Raises 5 Million to Secure Deprecated OSS HeroDevs Raises $125 Million to Secure Deprecated OSS Security Week News
OpenClaw Vulnerabilities Enable Sandbox Escape, Backdoor Access OpenClaw Vulnerabilities Enable Sandbox Escape, Backdoor Access Security Week News
Oracle Patches EBS Vulnerability Allowing Access to Sensitive Data Oracle Patches EBS Vulnerability Allowing Access to Sensitive Data Security Week News
Flaw in Industrial Computer Maker’s UEFI Apps Enables Secure Boot Bypass on Many Devices Flaw in Industrial Computer Maker’s UEFI Apps Enables Secure Boot Bypass on Many Devices Security Week News
AI Threats and Cybersecurity Updates This Week AI Threats and Cybersecurity Updates This Week Security Week News
GitHub’s NPM 12 Blocks Script Execution to Enhance Security AI Exploitation: Emerging Threats in Cybersecurity Security Week News

Categories

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

Recent Posts

  • Chrome Extension Secretly Collects AI Interactions
  • Leading Phishing Kits Exploit Microsoft 365 in Cyberattacks
  • Critical Security Update for JetBrains TeamCity Users
  • AI Uncovers Cryptographic Flaws Overlooked by Experts
  • Claude AI Unveils Breakthrough in Cryptanalysis

Pages

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

Archives

  • 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

  • Chrome Extension Secretly Collects AI Interactions
  • Leading Phishing Kits Exploit Microsoft 365 in Cyberattacks
  • Critical Security Update for JetBrains TeamCity Users
  • AI Uncovers Cryptographic Flaws Overlooked by Experts
  • Claude AI Unveils Breakthrough in Cryptanalysis

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