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

Hidden Word prompts worm through Copilot, alter figures

Hidden instructions in Word documents can make Microsoft 365 Copilot rewrite financial figures and...

US 30-Year Treasury Yield Hits 5.2%, Highest Since July 2007

US 30-year treasury yields surged to 5.201%, the highest since July 2007, following the...

Luno cuts 20% of global staff, citing automation

Luno is cutting approximately 20% of its global staff, CEO James Lanigan told Bloomberg...

AI Hedge Fund Up 439% Seeks Fresh Capital After Selloff

Request rate increased too quickly. To ensure system stability, please adjust your client logic...

Australia sues Telegram over pro-terror content failures

Australia's eSafety Commissioner launched civil penalty proceedings against Telegram for failing to remove terrorism-linked...

Must Read

A Beginner’s Guide To Cryptocurrency Mining

Cryptocurrency is considered one of the most popular forms of financial assets today. Many of these digital assets operate within blockchain technology which works...
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