Vulnerability Details CVE-2026-50015
pnpm is a package manager. Prior to 10.34.0 and 11.4.0, pnpm's patch application pipeline (@pnpm/patch-package) performs no path validation on file paths extracted from .patch files. An attacker who contributes a malicious patch file via a pull request can write attacker-controlled content to or delete arbitrary files on the filesystem during pnpm install, as the user running the install. The diff --git header paths containing ../../ sequences traverse out of the package directory, and the traversal is difficult to catch in code review because patch file diff headers are opaque to most reviewers. This vulnerability is fixed in 10.34.0 and 11.4.0.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.003
EPSS Ranking 16.2%
CVSS Severity
CVSS v3 Score 7.3
Products affected by CVE-2026-50015
-
cpe:2.3:a:pnpm:pnpm:11.0.0
-
cpe:2.3:a:pnpm:pnpm:11.0.1
-
cpe:2.3:a:pnpm:pnpm:11.0.2
-
cpe:2.3:a:pnpm:pnpm:11.0.3
-
cpe:2.3:a:pnpm:pnpm:11.0.4
-
cpe:2.3:a:pnpm:pnpm:11.0.5
-
cpe:2.3:a:pnpm:pnpm:11.0.6
-
cpe:2.3:a:pnpm:pnpm:11.0.7
-
cpe:2.3:a:pnpm:pnpm:11.0.8
-
cpe:2.3:a:pnpm:pnpm:11.0.9
-
cpe:2.3:a:pnpm:pnpm:11.1.0
-
cpe:2.3:a:pnpm:pnpm:11.1.1
-
cpe:2.3:a:pnpm:pnpm:11.1.2
-
cpe:2.3:a:pnpm:pnpm:11.1.3
-
cpe:2.3:a:pnpm:pnpm:11.2.0
-
cpe:2.3:a:pnpm:pnpm:11.2.1
-
cpe:2.3:a:pnpm:pnpm:11.2.2
-
cpe:2.3:a:pnpm:pnpm:11.3.0