Path traversal in pnpm - #VU140784
Published: August 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to path traversal in the isolated-linker import target when processing a tarball dependency with a crafted manifest name during installation. A remote attacker can supply a specially crafted tarball dependency to overwrite files outside node_modules and execute arbitrary code.
User interaction is required to run pnpm install, and exploitation can occur even when installation is performed with --ignore-scripts.