CVE-2026-23888
published medium CVSS 3.1 · 6.5pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pnpm | — | pnpm< 10.28.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | v3.23 | pnpm | Fixed | 10.33.4-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pnpm | pnpm | < 10.28.1 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-23 CWE-23: Relative Path Traversal
- CWE-426 CWE-426: Untrusted Search Path
References
3Provider assertions
2GitHub_M · cna
pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3ce77578b8aa71230fe8d9bc3f44f0017f7cf9344f7bfa069b1b618330323fcd
- Ingested
- 23 Sep 2026, 09:06:03 UTC
- Source record
- Official CVE record