Path traversal in pnpm - #VU134553
Published: June 15, 2026
pnpm
Detailed vulnerability description
The vulnerability allows a remote attacker to delete files or directories outside the global bin directory.
The vulnerability exists due to path traversal in pnpm global add/remove bin cleanup when processing manifest-derived bin names during global package operations. A remote attacker can install a specially crafted package with reserved bin names to delete files or directories outside the global bin directory.
User interaction is required because the malicious package must be installed globally before a later global remove, update, or add-replacement flow triggers the deletion sink.