Path traversal in pnpm - #VU140786
Published: August 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to modify files outside the intended project directory.
The vulnerability exists due to path traversal in pacquet trust-lockfile install handling when processing a crafted lockfile alias during installation. A remote attacker can supply a crafted lockfile that causes dependency symlinks to be created outside the intended project or node_modules boundary to modify files outside the intended project directory.
User interaction is required to run installation with --trust-lockfile or a frozen lockfile.