SecurityContext

CVE-2026-50015: pnpm - Path Traversal

  • Cve: CVE-2026-50015
  • Name: pnpm - Path Traversal
  • 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.
  • Impact: Attackers can write or delete arbitrary files as the user running pnpm install, potentially leading to system compromise.
  • Remediation: Update to version 10.34.0 or 11.4.0 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, denial_of_service
  • Requirement type: logged_in
  • Requirements: Attacker must contribute a malicious patch file via pull request
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
  • Epss score: 0.00428
  • Epss percentile: 0.37542
  • Assignee: [email protected]
  • Published at: 2026-06-25T18:16:39Z
  • Age in days: 152
  • Modified at: 2026-06-29T21:15:11Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-50015
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4nvd2026-06-25

References

UrlSourceTags
https://github.com/pnpm/pnpm/security/advisories/GHSA-rxhj-4m44-96r4nvdExploit, Mitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
pnpm:pnpm>= 11.0.0, < 11.4.0; < 10.34.0nonvd/v1/products/pnpm/pnpm

Projects

RepositoryLink kindsIndexedUrl
pnpm/pnpmpackage, security_advisoryyes/v1/repositories/pnpm/pnpm

Index

  • Repositories: 11
  • Repositories high signal: 9
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-06-25
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts