AI Headlines Pro
NewsToolsBoostStartupsResearch

Daily AI briefing

No spam, unsubscribe anytime.

AI Headlines Pro

Your premier source for the latest AI news, breakthroughs, tools, and startups in the fast-evolving world of Artificial Intelligence.

Quick Links

  • About
  • Contact
  • Privacy Policy
  • Terms of Service
  • RSS Feed

Categories

  • News
  • Tools
  • Startups
  • Research
  • Saved
  • Boost Your Tool
  • Submit Tool

© 2026 AI Headlines Pro. All rights reserved.

CybersecurityJuly 9, 2026

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

The Microsoft-owned subsidiary noted that the following npm install behaviors that used to run automatically before have been made opt-in -

T
The Hacker News
~3 min read

Ravie LakshmananJul 09, 2026Supply Chain Security / DevSecOps * GitHub has officially announced the release of npm version 12 with install scripts disabled by default, along with deprecating granular access tokens (GATs) designed to bypass two-factor authentication (2FA).

The Microsoft-owned subsidiary noted that the following npm install behaviors that used to run automatically before have been made opt-in -

  • allowScripts defaults to off, meaning dependency lifecycle scripts (i.e., preinstall, install, postinstall) and implicit node-gyp builds no longer run unless explicitly allowed.

  • --allow-git defaults to none, meaning --allow-git defaults to none: Git dependencies (direct or transitive) are no longer resolved unless explicitly allowed.

  • --allow-remote defaults to none, meaning dependencies from remote URLs (e.g., https tarballs) are no longer resolved unless explicitly allowed.

To review and approve trusted scripts, users are now required to run: "npm approve-scripts --allow-scripts-pending," then commit the resulting allowlist in the "package.json" file.

* It's worth noting that these changes were previewed last month, with GitHub recommending developers to upgrade to npm 11.16.0 or newer, run the normal install command, and review the warnings displayed.

The latest npm release version also introduces two new changes -

  • npm GATs configured to bypass 2FA will no longer be able to perform sensitive account, package, and organization management actions. This includes creating or deleting tokens, generating recovery codes and changing npm account password, email, profile, or 2FA configuration, changing package access, maintainers, or trusted publishing configuration, and managing organization and team membership as well as their package grants.

  • npm GATs will no longer retain the ability to publish directly. Their publishing surface will be limited to reading private packages and staging a publish, where a package only becomes public after a human 2FA approval.

The first of two changes is expected to take effect in early August 2026. In the interim, it's advised to stop using 2FA-bypass tokens for the aforementioned operations and perform them interactively with 2FA. The second change is scheduled for January 2027.

"To prepare, plan to move automated publishing to trusted publishing (OIDC) or staged publishing with a human approval step, rather than a long-lived publish token," GitHub said.

* The development comes as pnpm 11.10 introduces a new "_auth" setting for configuring registry authentication as a single structured, URL-keyed value.

"The security benefit is that the credential and the host it belongs to travel together, and pnpm reads _auth only from the environment or the global config, never from a project's files," Socket explained.

"That means a malicious or compromised pnpm-workspace.yaml or .npmrc inside a repository cannot point a valid token at a different host. A tampered project file is a common way attackers get a foothold, and redirecting a registry token is a direct route to stealing it, so closing that path removes exposure."

Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.

SHARE    

Tweet Share Share Share

SHARE  Authentication, Cloud security, DevSecOps, GitHub, NPM, Open Source, Package Management, Software Development, Software Security, Supply Chain Security

Topics

aigooglemicrosoftsecurityhackcyber

Sources

  • https://thehackernews.com/2026/07/npm-12-disables-install-scripts-by.html

Share this article

Twitter/XLinkedInRedditWhatsApp

Related Articles

CybersecurityJul 14· thehackernews.com

Attacker Uses Suspected AI-Generated PowerShell Script to Map Active Directory

"The script looked for the Domain Controller (DC) and mapped users, computers, and domains, before creating a directory and exporting out a number of files, and finally creating AD Report.html to measure the success of…

The Hacker News·~5 min
aiartificial intelligence
CybersecurityJul 14· thehackernews.com

Meta Files Patent for AI That Can Listen All Day and Track How You're Feeling

Each read gets pinned to the moment it happened: the time, your location, what you were doing, even how you were using your phone. Some versions in the filing would listen all day; others would check in only at set…

The Hacker News·~5 min
aiartificial intelligence
CybersecurityJul 14· thehackernews.com

Thinking Fast and Slow in the SOC: The Case for Combining Autonomous AI with Analyst Copilots

On the flight home, I picked up a book I had not touched in a few years. Daniel Kahneman's Thinking, Fast and Slow. Kahneman is one of the rare people who genuinely changed how we understand human decisionmaking. He…

The Hacker News·~9 min
aiartificial intelligence

Related AI Tools

ChatGPT

AI-powered conversational assistant by OpenAI

Freemium4.5 ★

Claude

AI assistant by Anthropic with strong reasoning

Freemium4.6 ★

Midjourney

AI image generation from text prompts

Paid4.7 ★
← Back to all news