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.
References
| Link | Resource |
|---|---|
| https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4 | Exploit Mitigation Vendor Advisory |
| https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4 | Exploit Mitigation Vendor Advisory |
Configurations
Configuration 1 (hide)
|
History
29 Jun 2026, 21:15
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Pnpm
Pnpm pnpm |
|
| CPE | cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:node.js:*:* | |
| References | () https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4 - Exploit, Mitigation, Vendor Advisory |
25 Jun 2026, 19:16
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4 - |
25 Jun 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-06-25 18:16
Updated : 2026-06-29 21:15
NVD link : CVE-2026-50015
Mitre link : CVE-2026-50015
CVE.ORG link : CVE-2026-50015
JSON object : View
Products Affected
pnpm
- pnpm
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
