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

Crypto-backed PAC candidates win 4 of 5 primaries in key races

Four of five candidates backed by the crypto-aligned PAC Fairshake won primaries or advanced...

BRICS 2026: Modi pushes CBDC payment link at summit

The BRICS 2026 summit in New Delhi will spotlight a CBDC payment bridge to...

Base Accelerator Offers $100K to 10 AI Agent Startups

The Base accelerator plans to select 10 startups for its eight-week Batches 004 accelerator.Each...

Bitcoin Whales Accumulate Despite ETF Outflows

Bitcoin wallets holding at least 10,000 BTC climbed to 89, a six-month high, as...

GTA VI Leaks Used to Pump Crypto Token in ‘Secret Project’

A user called “CyberLeek” leaked GTA VI gameplay footage to promote a crypto token...

Must Read

17 Best Audiobooks On Blockchain Technology For Beginners

If you're looking to dive into the world of blockchain technology, you're in for a treat. The field is rapidly evolving and the potential...
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