Path traversal in pnpm - CVE-2026-23890
Published: April 27, 2026
pnpm
Detailed vulnerability description
The vulnerability allows a remote attacker to create arbitrary files outside node_modules/.bin.
The vulnerability exists due to path traversal in pkg-manager/package-bins and pkg-manager/link-bins when processing crafted scoped bin names from an installed package. A remote attacker can supply a malicious npm package with a specially crafted bin name to create arbitrary files outside node_modules/.bin.
User interaction is required to install the malicious package.