# CVE-2026-59194: pnpm: patch-remove could delete project-selected files outside the patches directory

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-27T00:12:39.000Z
- Modified: 2026-07-08T08:27:15.664Z
- Also known as: GHSA-72r4-9c5j-mj57
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 10.34.4; >= 11.0.0, < 11.7.0; before 10.34.4; from 11.0.0 before 11.7.0
- pnpm (npm): before 10.34.4; from 11.0.0 before 11.7.0

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-72r4-9c5j-mj57> (exploit, vendor-advisory, web)
- <https://github.com/pnpm/pnpm/commit/612a2e6a7333f2b061f452a21b6e62c1c161747f> (web)
- <https://github.com/pnpm/pnpm> (package)
- <http://github.com/pnpm/pnpm/commit/352ae489f1b14ffdc19d2c6eacb1b06b098c2ddc> (web)

## Sources

- CVE List: [CVE-2026-59194](https://www.cve.org/CVERecord?id=CVE-2026-59194), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-72r4-9c5j-mj57](https://github.com/advisories/GHSA-72r4-9c5j-mj57), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-59194](https://nvd.nist.gov/vuln/detail/CVE-2026-59194), Public domain, modified 2026-07-07

---

Page: https://cve.day/CVE-2026-59194 · Whole record: https://cve.day/CVE-2026-59194.json · Rebuilt by cve.day 2026-11-25T22:59:27.230Z
