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

Netflix to Report Box Office Grosses for Six Upcoming Films

Netflix will report box office grosses for six upcoming films for the first time,...

Hedera Council grows partner network with WISeKey, SpaceDev

Hedera Council adds WISeKey as a Strategic Partner, strengthening Cybersecurity and digital identity capabilities...

Bybit launches 24/7 FX perpetuals with up to 100x leverage

Bybit has launched USDT-settled perpetual contracts covering EUR/USD, GBP/USD, and USD/JPY.The contracts are available...

Liquid Network Hack: 85% of Stolen Bitcoin Returned After Insider Bug

Hackers claiming to be white hats withdrew nearly 4,000 BTC from Liquid Network on...

US Republicans expect Crypto Clarity Act to fail Senate vote

The CLARITY Act (H.R. 3633) faces a Senate cloture vote on September 15, 2026,...

Must Read

The Ultimate Guide on How to Understand a Cryptocurrency White Paper

Today, cryptocurrency is a popular buzzword. We hear about it on the news, we read about it on the Internet. Yet, people are reluctant to...
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