CVE-2026-50015

Description

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.

Severity
HIGH
CVSS v3
7.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H · source cna
Exploit chance (EPSS)
0.428%
chance of exploitation in the next 30 days
higher than 37.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2026-06-25

Timeline

  1. 2026-06-25Published by the CNA16:52 UTC
  2. 2026-06-25CISA SSVC decision recordedsame day
  3. 2026-06-26GitHub advisory published (GHSA-rxhj-4m44-96r4)1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-rxhj-4m44-96r4, affected packages:

PackageVulnerable versionsFixed in
npm pnpmbefore 10.34.010.34.0
npm pnpmfrom 11.0.0 before 11.4.011.4.0

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
pnpm pnpmbefore 10.34.0fixed in 10.34.0from 11.0.0 before 11.4.0fixed in 11.4.010.34.011.4.0

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources