{"id":"CVE-2026-50015","published":"2026-06-25T16:52:01Z","modified":"2026-06-25T17:59:33Z","title":"pnpm: Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)","vendor":"pnpm","product":"pnpm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00428,"percentile":0.28777,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":5.76},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"pnpm","affectedVersions":[{"vendor":"pnpm","product":"pnpm","versions":["< 10.33.4",">= 11.0.0, < 11.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T17:59:13.012393Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"pnpm","vulnerableRanges":["<10.34.0",">=11.0.0, <11.4.0"],"patched":["10.34.0","11.4.0"],"from":["GHSA-rxhj-4m44-96r4"],"provenance":"source"}],"summary":{"text":"pnpm, the package manager, has a path traversal flaw in its patch application pipeline (@pnpm/patch-package), which does not validate file paths taken from .patch files, affecting versions prior to 10.34.0 and 11.4.0. An attacker who gets a malicious patch file into a project, for example through a pull request, can write or delete arbitrary files as the user running pnpm install, provided that user is induced to run the install and the patch file is accepted into the repository.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:30Z"},"euvd":{"id":"EUVD-2026-39492","exploited":false,"provenance":"source"}}