Arbitrary Argument Injection Affecting pnpm package, versions <10.34.0>=11.0.0 <11.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-PNPM-17667933
  • published29 Jun 2026
  • disclosed26 Jun 2026
  • credittempcollab

Introduced: 26 Jun 2026

NewCVE-2026-50014  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade pnpm to version 10.34.0, 11.4.0 or higher.

Overview

pnpm is a Fast, disk space efficient package manager

Affected versions of this package are vulnerable to Arbitrary Argument Injection in the git fetcher at fetching/git-fetcher/src/index.ts, which passes the lockfile's resolution.commit value into git fetch and git checkout without a -- separator or format validation. An attacker can execute arbitrary commands as the user running the install by supplying a pnpm-lock.yaml whose resolution.commit is a git option such as --upload-pack=<command> instead of a 40-character hash. Exploitation requires the victim to install a project carrying the malicious lockfile and the git dependency to resolve over the SSH or local transport, as the HTTPS transport is not affected by --upload-pack injection.

Workaround

This vulnerability can be avoided by configuring git dependencies to resolve over the HTTPS transport rather than SSH or local-path transports, since the --upload-pack injection has no effect over HTTPS.

CVSS Base Scores

version 4.0
version 3.1