Path traversal in pnpm - CVE-2026-50015
Published: June 15, 2026
pnpm
Detailed vulnerability description
The vulnerability allows a remote user to write or delete arbitrary files.
The vulnerability exists due to path traversal in the @pnpm/patch-package patch application pipeline when processing a crafted .patch file during pnpm install. A remote user can submit a malicious patch file and patchedDependencies configuration to write or delete arbitrary files.
User interaction is required to run pnpm install on a workspace containing the malicious patch configuration.