BTC $71,807
2026 Bull Run Is Building Start trading with 5% OFF all fees
Sign Up Now
BTC $71,807
Bull Run 2026 | 5% Off Fees Open your Binance account today
Sign Up

npm 12 disables install scripts, phases out 2FA bypass tokens

GitHub releases npm 12 with opt-in scripts, deprecates 2FA-bypass tokens, pnpm 11.10 secures registry auth.

  • GitHub released npm version 12 with install scripts disabled by default, making previously automatic behaviors like dependency lifecycle scripts opt-in.
  • Granular Access Tokens (GATs) designed to bypass two-factor authentication (2FA) are being deprecated, with phased restrictions starting in August 2026 and full publishing limits by January 2027.
  • The concurrent pnpm 11.10 release introduces a new registry authentication setting that prevents project files from redirecting credentials to malicious hosts.

GitHub has officially announced the release of npm version 12 with install scripts disabled by default, while also deprecating granular access tokens (GATs) that bypass two-factor authentication (2FA). The Microsoft-owned subsidiary confirmed that three previously automatic npm install behaviors are now opt-in: dependency lifecycle scripts, Git dependencies, and remote URL dependencies.

- Advertisement -

Users must now run “npm approve-scripts” and commit a resulting allowlist in their package.json file to review and approve trusted scripts. These changes were previewed last month, with GitHub recommending developers upgrade to npm 11.16.0 or newer to review warnings.

The latest npm release also introduces two phased security changes for GATs. By early August 2026, tokens configured to bypass 2FA will lose the ability to perform sensitive account, package, and organization management actions. In January 2027, these tokens will no longer retain publishing capabilities, limiting their surface to reading private packages and staging a publish requiring human 2FA approval.

GitHub advised moving automated publishing to trusted publishing (OIDC) or staged publishing with a human approval step instead of using long-lived publish tokens. “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,” the company stated.

Meanwhile, pnpm 11.10 introduces a new “_auth” setting for configuring registry authentication as a single, URL-keyed value. Socket explained that the credential and its host travel together, with pnpm reading _auth only from the environment or global config. “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,” the firm noted.

- Advertisement -

✅ Follow BITNEWSBOT on Telegram, Facebook, LinkedIn, X.com, and Google News for instant updates.

Previous Articles:

- Advertisement -
Ad
Altseason Is Loading. Don't watch from the sidelines.
SOL $90.51
DOGE $0.0963
LINK $9.02
SUI $1.00
5% off fees when you sign up
Start Trading
Ad
Pay Less on Every Trade. For Life.
$10K/mo volume Save $60/yr
$50K/mo volume Save $300/yr
$100K/mo volume Save $600/yr
5% off all trading fees when you sign up
Claim Your Discount

Latest News

Coinbase CLO Paul Grewal steps down, names successors

Coinbase Chief Legal Officer Paul Grewal will step down on July 31 and move...

Ethereum Foundation deploys AI agents to hunt for network bugs

Ethereum Foundation researchers deployed AI agents to red-team critical network infrastructure, uncovering real bugs.The...

Ethereum May Be Forming Short-Term Bottom, Says Ex-BofA Strategist

Ethereum may be forming a short-term bottom, according to a chart shared by Tom...

Tesla BTC stash plunges 66% despite Bitcoin’s 30% rally

Tesla's Bitcoin holdings have lost two-thirds of their value despite the cryptocurrency appreciating more...

Bitcoin miner AI rally draws scrutiny over insider stock sales

Publicly traded Bitcoin miners saw sharp stock gains after pivoting to AI, but insider...

Must Read

Are Cryptocurrency Securities?

TL;DR - Cryptocurrencies are not typically considered securities, as they are decentralized digital assets that operate independently of any central authority or government. However,...
Ad
Altseason Is Loading. These 4 coins are trending right now.
SOL $92.12
DOGE $0.0950
LINK $9.02
SUI $1.02
5% off spot fees when you sign up
Start Trading