pnpm: Tarball hash of GitHub git dependencies is not stored in lockfile (CVE-2026-48995)
Description
pnpm versions prior to 10.33.4 and 11.0.7 do not store the tarball hash of GitHub git dependencies in the lockfile. This allows a malicious codeload.github.com server to serve arbitrary tarballs that pnpm will install, bypassing lockfile integrity verification. The vulnerability is fixed in versions 10.33.4 and 11.0.7.
CVSS v4.0
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
The pnpm package manager before versions 10.33.4 and 11.0.7 does not record the hash of dependencies fetched from https://codeload.github.com in its lockfile. Consequently, if the codeload.github.com server is compromised or if an attacker can manipulate the network or machine configuration, pnpm may download and install malicious tarballs without detection. This flaw undermines the integrity guarantees normally provided by the lockfile. The issue is resolved by including the tarball hash in the lockfile starting from versions 10.33.4 and 11.0.7.
Potential Impact
An attacker controlling or compromising the codeload.github.com server or the victim's machine configuration can cause pnpm to install arbitrary malicious code by serving manipulated tarballs. This bypasses the lockfile's integrity protection, potentially leading to supply chain compromise. However, exploitation requires either server compromise or local configuration compromise. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade pnpm to version 10.33.4 or later, or 11.0.7 or later, where the vulnerability is fixed by storing the tarball hash in the lockfile. Until then, avoid using pnpm versions prior to these fixed releases for projects relying on GitHub git dependencies. No other mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-48995
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac2c0b02cdf04f656523909
Added to database: 10/04/2026, 21:10:08 UTC
Last enriched: 10/04/2026, 21:17:00 UTC
Last updated: 10/05/2026, 06:48:16 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.