ADVISORIES

Vulnerability

CVE-2026-50015

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.

3 advisories report this vulnerability, across 3 ecosystems.

High severity All Chainguard 2Wolfi 2npm 1

Advisories

  • CGA-5995-528q-wmqf
    CVE-2026-50015 ChainguardWolfi Updated 5 November 2026
  • CGA-8mv5-cv2r-mwqq
    CVE-2026-50015 ChainguardWolfi Updated 5 November 2026
  • GHSA-rxhj-4m44-96r4

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

    High CVE-2026-50015 npm Updated 26 June 2026

References