CVE-2026-50015 Details
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.
A vulnerability in pnpm's patch application pipeline, specifically in versions prior to 10.34.0 and 11.0.0 through 11.4.0, allows for arbitrary file writing or deletion. This issue arises because the patch application process does not validate file paths in .patch files. An attacker can exploit this by submitting a malicious patch file that, when applied during pnpm install, writes or deletes files on the filesystem as the user running the install. The vulnerability takes advantage of path traversal sequences that escape the package directory, targeting files that are writable by the user, such as SSH configuration files or other personal files.
Users can upgrade to pnpm versions 10.34.0 or 11.4.0 and later, where this vulnerability has been fixed. Additionally, it is recommended to review and validate any patch files before applying them.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pnpm pnpm | < 10.34.0 >= 11.0.0, < 11.4.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 29, 2026 | Initial Analysis | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2026 | New CVE Received | [email protected] |