pnpm: Integrity Check Bypass via Missing Lockfile Integrity Field (CVE-2026-50021)
Description
A vulnerability in pnpm prior to versions 10.34.0 and 11.4.0 allows bypassing integrity checks during package installation if the integrity field is missing from the lockfile. This can enable installation of altered packages without detection when using pnpm install --frozen-lockfile. The issue is specific to pnpm and differs from npm's default integrity enforcement. The vulnerability is fixed in versions 10.34.0 and 11.4.0.
CVSS v3.1
Score 6.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
pnpm's tarball extraction worker skips integrity verification if the integrity field is absent from the lockfile resolution prior to versions 10.34.0 and 11.4.0. An attacker who can modify pnpm-lock.yaml to remove the integrity field and control the registry URL content can cause pnpm install --frozen-lockfile to install tampered packages without triggering integrity errors. This behavior is a fail-open gap unique to pnpm, as npm enforces integrity verification by default. The vulnerability is addressed in pnpm versions 10.34.0 and 11.4.0.
Potential Impact
An attacker able to modify the pnpm-lock.yaml file and the referenced registry URL can cause pnpm to install maliciously altered packages without integrity verification errors. This can lead to the execution of compromised code with the privileges of the user running pnpm. The vulnerability affects confidentiality and integrity but not availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade pnpm to version 10.34.0 or later, or 11.4.0 or later, where this integrity check bypass vulnerability is fixed. Until then, be cautious of lockfile modifications and untrusted registry sources. No other vendor advisories indicate alternative mitigations or that the issue is already mitigated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-50021
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2c0b02cdf04f656523904
Added to database: 10/04/2026, 21:10:08 UTC
Last enriched: 10/04/2026, 21:16:39 UTC
Last updated: 10/05/2026, 06:48:17 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.