Path Traversal Vulnerability in pnpm Package Manager
CVE-2026-50015

7.3HIGH

Key Information:

Vendor

Pnpm

Status
Vendor
CVE Published:
25 June 2026

What is CVE-2026-50015?

The pnpm package manager has a vulnerability in its patch application pipeline that lacks path validation when applying .patch files. This oversight allows an attacker to contribute a malicious patch file through a pull request, potentially enabling them to write or delete arbitrary files on the filesystem during installation. This is particularly concerning as the vulnerability exploits the diff --git header paths that contain ../../ sequences, allowing the traversal to escape the package directory. Such traversal can be easily overlooked during code reviews, as the diff headers are often opaque and not closely monitored, presenting a serious security risk.

Affected Version(s)

pnpm < 10.33.4 < 10.33.4

pnpm >= 11.0.0, < 11.4.0 < 11.0.0, 11.4.0

References

CVSS V3.1

Score:
7.3
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.