Skip to main content
← All vulnerabilities
CVE-2026-50015GHSA-RXHJ-4M44-96R4

pnpm: Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.33.4, 11.4.0, 10.34.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

pnpm is a package manager. Prior to 10.34.0 and 11.4.0, pnpm's patch application pipeline (@pnpm/patch-package) performs no path validation on file paths extracted from .patch files. An attacker who contributes a malicious patch file via a pull request can write attacker-controlled content to or delete arbitrary files on the filesystem during pnpm install, as the user running the install. The diff --git header paths containing ../../ sequences traverse out of the package directory, and the traversal is difficult to catch in code review because patch file diff headers are opaque to most reviewers. This vulnerability is fixed in 10.34.0 and 11.4.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pnpm pnpm

    fixed in 10.33.4; From 11.0.0 · fixed in 11.4.0

  • pnpmnpm

    fixed in 10.34.0

  • pnpmnpm

    From 11.0.0 · fixed in 11.4.0

References 1

GitHub · pnpm/pnpm