{"id":"CVE-2026-23888","state":"PUBLISHED","title":"pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip)","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.","publishedAt":"2026-01-26T21:37:17.483Z","updatedAt":"2026-01-27T21:41:06.094Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["pnpm pnpm"],"affected":[{"vendor":"pnpm","product":"pnpm","versions":[{"version":"< 10.28.1","status":"affected"}]}],"references":["https://github.com/pnpm/pnpm/security/advisories/GHSA-6pfh-p556-v868","https://github.com/pnpm/pnpm/commit/5c382f0ca3b7cc49963b94677426e66539dcb3f5","https://github.com/pnpm/pnpm/releases/tag/v10.28.1"],"weaknesses":["CWE-22","CWE-23","CWE-426"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23888.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23888","state":"PUBLISHED","datePublished":"2026-01-26T21:37:17.483Z","dateUpdated":"2026-01-27T21:41:06.094Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-16T21:02:02.902Z"},"containers":{"cna":{"title":"pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pnpm","product":"pnpm","versions":[{"version":"< 10.28.1","status":"affected"}]}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-6pfh-p556-v868","name":"https://github.com/pnpm/pnpm/security/advisories/GHSA-6pfh-p556-v868","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnpm/pnpm/commit/5c382f0ca3b7cc49963b94677426e66539dcb3f5","name":"https://github.com/pnpm/pnpm/commit/5c382f0ca3b7cc49963b94677426e66539dcb3f5","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnpm/pnpm/releases/tag/v10.28.1","name":"https://github.com/pnpm/pnpm/releases/tag/v10.28.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-23","lang":"en","description":"CWE-23: Relative Path Traversal","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-426","lang":"en","description":"CWE-426: Untrusted Search Path","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-26T22:00:59.720Z"},"source":{"advisory":"GHSA-6pfh-p556-v868","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-27T21:40:56.936224Z","id":"CVE-2026-23888","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-27T21:41:06.094Z"}}]}}}