Path traversal in pnpm - CVE-2026-23889
Published: April 27, 2026
pnpm
Detailed vulnerability description
The vulnerability allows a remote attacker to write arbitrary files outside the package directory.
The vulnerability exists due to path traversal in tarball extraction in store/cafs/src/parseTarball.ts when processing a crafted tarball on Windows. A remote attacker can supply a specially crafted package tarball with backslash-based traversal sequences to write arbitrary files outside the package directory.
User interaction is required to install the crafted package, and the issue is specific to Windows systems where backslashes are treated as directory separators.