# CVE-2026-23888: pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip)

- Severity: Medium 6.5 (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:N`
- 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.45%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-26T21:02:49.000Z
- Modified: 2026-06-17T10:22:15.717Z
- Also known as: GHSA-6pfh-p556-v868
- Weaknesses: CWE-22, CWE-23, CWE-426
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's binary fetcher allows malicious packages to write files outside the intended extraction directory. The vulnerability has two attack vectors: (1) Malicious ZIP entries containing `../` or absolute paths that escape the extraction root via AdmZip's `extractAllTo`, and (2) The `BinaryResolution.prefix` field is concatenated into the extraction path without validation, allowing a crafted prefix like `../../evil` to redirect extracted files outside `targetDir`. The issue impacts all pnpm users who install packages with binary assets, users who configure custom Node.js binary locations and CI/CD pipelines that auto-install binary dependencies. It can lead to overwriting config files, scripts, or other sensitive files leading to RCE. Version 10.28.1 contains a patch.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 10.28.1; before 10.28.1
- pnpm (npm): before 10.28.1

## Every score

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

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-6pfh-p556-v868> (exploit, vendor-advisory, web)
- <https://github.com/pnpm/pnpm/commit/5c382f0ca3b7cc49963b94677426e66539dcb3f5> (patch, web)
- <https://github.com/pnpm/pnpm/releases/tag/v10.28.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23888> (advisory)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2026-23888](https://www.cve.org/CVERecord?id=CVE-2026-23888), CVE Terms of Use, modified 2026-01-27
- GitHub Advisory Database: [GHSA-6pfh-p556-v868](https://github.com/advisories/GHSA-6pfh-p556-v868), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-23888](https://nvd.nist.gov/vuln/detail/CVE-2026-23888), Public domain, modified 2026-06-17

---

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