CVE-2026-59194
HIGH 7.1CVSS 3.1pnpm: `patch-remove` could delete project-selected files outside the patches directory
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.
- Published
- 6 Jul 2026
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-72r4-9c5j-mj57
- Sources
- NVDJSONOSV GHSA-72r4-9c5j-mj57JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pnpm | pnpmcpe:2.3:a:pnpm:pnpm:*:*:*:*:*:node.js:*:* |
< 10.34.4 | 10.34.4 |
| NVD | pnpm | pnpmcpe:2.3:a:pnpm:pnpm:*:*:*:*:*:node.js:*:* |
>= 11.0.0, < 11.7.0 | 11.7.0 |
| OSV | npm | pnpm | < 10.34.4 | 10.34.4 |
| OSV | npm | pnpm | >= 11.0.0, < 11.7.0 | 11.7.0 |
References
- https://github.com/pnpm/pnpm/security/advisories/GHSA-72r4-9c5j-mj57 · Vendor Advisory, Exploit, WEB
- https://github.com/pnpm/pnpm/commit/612a2e6a7333f2b061f452a21b6e62c1c161747f · WEB
- https://github.com/pnpm/pnpm · PACKAGE
- http://github.com/pnpm/pnpm/commit/352ae489f1b14ffdc19d2c6eacb1b06b098c2ddc · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 6 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Jun 2026)