{"id":"CVE-2026-59194","published":"2026-07-06T15:16:28Z","modified":"2026-07-07T16:57:59Z","title":"pnpm: patch-remove could delete project-selected files outside the patches directory","vendor":"pnpm","product":"pnpm","tier":"tail","description":{"text":"pnpm is a package manager. Prior to 10.34.4 and 11.7.0, a crafted patch entry could resolve outside the configured patches directory and cause pnpm patch-remove to delete an arbitrary reachable file. This vulnerability is fixed in 10.34.4 and 11.7.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00401,"percentile":0.25949,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-72r4-9c5j-mj57","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":5.19},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"pnpm","affectedVersions":[{"vendor":"pnpm","product":"pnpm","versions":["< 10.34.4",">= 11.0.0, < 11.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T16:42:34.727360Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-41881","exploited":false,"provenance":"source"}}