# CVE-2026-50015: pnpm: Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H`
- 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.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-25T16:52:01.587Z
- Modified: 2026-06-29T21:15:11.907Z
- Also known as: GHSA-rxhj-4m44-96r4
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 10.33.4; >= 11.0.0, < 11.4.0; before 10.34.0; from 11.0.0 before 11.4.0
- pnpm (npm): before 10.34.0; from 11.0.0 before 11.4.0

## Every score

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

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50015> (advisory)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2026-50015](https://www.cve.org/CVERecord?id=CVE-2026-50015), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-rxhj-4m44-96r4](https://github.com/advisories/GHSA-rxhj-4m44-96r4), CC-BY-4.0, modified 2026-06-26
- NVD: [CVE-2026-50015](https://nvd.nist.gov/vuln/detail/CVE-2026-50015), Public domain, modified 2026-06-29

---

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