pnpm: Git Fetch Argument Injection via Lockfile resolution.commit (CVE-2026-50014)
Description
pnpm versions prior to 10.34.0 and 11.4.0 contain a vulnerability where the git resolution.commit value from a lockfile is passed to git fetch without proper validation. This allows injection of git options such as --upload-pack, which can execute arbitrary commands when using SSH or local git transports. The vulnerability is fixed in versions 10.34.0 and 11.4.0.
CVSS v3.1
Score 6.4medium
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 versions before 10.34.0 and 11.4.0 improperly handle the git resolution.commit value from lockfiles by passing it directly to git fetch without a '--' separator or commit hash validation. This enables an attacker controlling the lockfile to replace the expected 40-character commit hash with a malicious git option like --upload-pack=<command>. When git dependencies are fetched via SSH or local transports, this option can lead to arbitrary command execution. HTTPS transports ignore this option, limiting the attack surface. The vulnerability is addressed in pnpm versions 10.34.0 and 11.4.0.
Potential Impact
An attacker who can supply a malicious lockfile can execute arbitrary commands on the system running pnpm by exploiting the injection of git fetch arguments. This impacts confidentiality and integrity but does not affect availability. The attack surface is limited to git dependencies fetched over SSH or local transports.
Mitigation Recommendations
Upgrade pnpm to version 10.34.0 or later, or 11.4.0 or later, where this vulnerability is fixed. No other mitigations are specified or required once patched.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-50014
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2c0b02cdf04f656523908
Added to database: 10/04/2026, 21:10:08 UTC
Last enriched: 10/04/2026, 21:16:57 UTC
Last updated: 10/05/2026, 06:48:17 UTC
Views: 10
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.