惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
小众软件
小众软件
The Cloudflare Blog
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
美团技术团队
WordPress大学
WordPress大学
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
GbyAI
GbyAI
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗

Socket

Fake Corepack Site Distributes Infostealer and Proxyware to ... Large-Scale GitHub Actions Abuse Powers a Distributed cPanel... New Study Identifies 53 Slopsquatting Targets Across 5 Front... White House Launches Gold Eagle Initiative to Manage Surge i... Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Mu... Next.js moves to scheduled security releases - Socket 11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windo... Compromised npm Packages in the AsyncAPI Namespace Deliver M... jscrambler npm Package Compromised in Supply Chain Attack - ... Fake Braintree NuGet Package Skims Credit Cards and Harvests... Compromised Injective SDK npm Package Exfiltrates Wallet Key... npm v12 Ships With Install Scripts Off by Default, Begins De... Malicious Go Module Exposes GitHub Malware Lure Network Span... pnpm 11.10 Hardens Registry Authentication to Block Token Re... Coordinated npm and PyPI Campaign Typosquats Popular Secure ... Node.js Considers Public Workflow for Security Reports Amid ... PolinRider: North Korea-Linked Supply Chain Campaign Expands... Risky Biz Podcast: AI Agents Are Raising the Stakes for Soft... Chrome and Firefox Extensions Posing as Free VPNs Add Clipbo... Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages - S... Rolldown Pulls Rust React Compiler Integration After Binary ... Miasma Mini Shai-Hulud Hits LeoPlatform npm Packages and Git... Frontier AI Is Now Critical Infrastructure - Socket The Code You Didn't Write Is Still Yours to Defend - Socket GitHub Actions Checkout Now Blocks Risky pull_request_target... Introducing Repository Access Permissions and Custom Roles -... Socket MCP Adds Org Alerts, Threat Feed Review, and Package ... Socket Firewall Now Blocks Malicious VS Code and Open VSX Ex... 140+ Mastra npm Packages Compromised in Coordinated Supply C... npm Package Uses Prompt Injection and Token Flooding to Disr...
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
Sarah Gooding · 2026-06-04 · via Socket

Sidebar CTA Background

Secure your dependencies with us

Socket proactively blocks malicious open source packages in your code.

Install

pnpm 11.5 now treats npm staged publishing approvals as strong trust evidence, fixing a false-positive downgrade warning that could appear when packages used npm’s newer 2FA-backed release flow.

The change lands as npm continues tightening package publishing controls after a series of credential theft and token abuse incidents. In the Mini Shai-Hulud campaign, attackers used stolen npm tokens to publish malicious package versions, prompting npm to invalidate granular access tokens and accelerate changes that reduce reliance on long-lived publishing credentials. Staged publishing places a package version in a staging state before it becomes installable, requiring a maintainer with publish access to approve the release through a 2FA challenge.

When a package version’s registry metadata includes an approver field, pnpm now ranks it above trusted publishing and provenance attestations. Staged publish approval is treated as pnpm’s strongest trust signal, rather than being mistaken for a fallback to less-secure traditional token-based publishing.

The fix follows a report from Kevin Deng, who found that pnpm’s trustPolicy: no-downgrade setting could incorrectly treat staged publishing approval as a downgrade from trusted publishing.

The no-downgrade policy is meant to warn when a package appears to move from a stronger publishing mechanism to a weaker one. That is useful for detecting suspicious changes, such as a package that previously used trusted publishing but later appears to fall back to classic account or token-based publishing.

Staged publishing complicated that logic. The issue noted that pnpm appeared to infer whether a package used trusted publishing by inspecting the _npmUser field. But when staged publishing is enabled, _npmUser may point to the npm user who approved the staged publish. That made a package version look like a false downgrade, even when the release still came through a trusted publishing flow.

pnpm 11.5 resolves this by recognizing staged publishing approval as its own trust signal. If registry metadata includes an approver, pnpm treats the release as having the strongest trust evidence rather than classifying it as a downgrade.

The related npm community discussion points to a larger metadata problem for package managers and security tools.

In that discussion, Deng asked npm to expose explicit registry metadata showing how a package version was published, including whether it used trusted publishing or staged publishing. The issue is that tools should not have to infer publishing security properties from fields like _npmUser, especially as npm adds more publishing modes.

npm now supports several release paths with different security properties:

  • Classic publishing can still involve user credentials, automation tokens, and 2FA depending on the project’s configuration.
  • Trusted publishing lets maintainers publish from supported CI/CD providers using OIDC instead of long-lived npm tokens.
  • Staged publishing adds a review step before a version becomes installable, requiring a maintainer with publish access to approve the release through 2FA.

Those mechanisms can also be combined. npm has said staged publishing works with trusted publishing, allowing CI to push a version into staging while a human maintainer separately approves it before release. For package managers and scanners, this adds a new responsibility to accurately interpret the security properties of a version based on the metadata exposed by the registry.

pnpm’s fix is a practical example of how package managers are adapting to npm’s newer security model. As registry publishing workflows become more granular, install tools need more precise metadata to avoid both missed warnings and noisy false positives.

Other Supply Chain Updates in pnpm 11.5#

pnpm 11.5 includes several other supply chain-adjacent fixes:

  • improved minimumReleaseAgeExclude handling, so excluded packages are not pinned to stale versions in npm resolution fast paths
  • preservation of the integrity field for remote HTTPS tarball dependencies when unrelated packages are installed afterward
  • browser-based 2FA handling for pnpm dist-tag add and pnpm dist-tag rm against npmjs.org

For staged publishes, the update is mainly about avoiding misclassification. pnpm 11.5 keeps staged publishes from being misread as a downgrade from trusted publishing to classic user or token-based publishing, which should reduce noisy no-downgrade alerts for projects using npm’s newer release controls.