CVE-2026-23888 Details
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.
A path traversal vulnerability has been identified in pnpm's binary fetcher, prior to version 10.28.1. This vulnerability allows malicious packages to write files outside the intended extraction directory. It arises from unvalidated ZIP entry paths and the improper handling of the 'BinaryResolution.prefix' field, which can be exploited to redirect extracted files to unintended locations. The issue affects all pnpm users who install packages with binary assets, those who configure custom Node.js binary locations, and CI/CD pipelines that automatically install binary dependencies. Exploitation of this vulnerability could lead to the overwriting of configuration files, scripts, or other sensitive files, potentially allowing for remote code execution.
Users can update to pnpm version 10.28.1 or later, where this vulnerability has been patched. Instructions for downloading the latest version can be found on the pnpm GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-23 | Relative Path Traversal | [email protected] |
| CWE-426 | Untrusted Search Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pnpm pnpm | < 10.28.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 28, 2026 | Initial Analysis | [email protected] |
| Jan 26, 2026 | New CVE Received | [email protected] |