Path traversal in pnpm - #VU140826
Published: August 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to write package files to arbitrary filesystem paths.
The vulnerability exists due to path traversal in lockfileToDepGraph when processing a crafted pnpm-lock.yaml file during installation. A remote attacker can supply a lockfile with traversal sequences in depPath keys to write package files to arbitrary filesystem paths.
User interaction is required to run pnpm install on the crafted lockfile.