Quick answers
- Is CVE-2026-50015 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-50015 being exploited in the wild.
- How severe is CVE-2026-50015?
- High severity, with a CVSS score of 7.3, published 25 June 2026.
- Which products and versions are affected?
- pnpm (npm) SEMVER:introduced=0,fixed=10.34.0.
- Is there a fix for CVE-2026-50015?
- Yes. pnpm (npm): upgrade to 10.34.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-50015 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-50015?
- Check whether you run pnpm (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- pnpm (npm): upgrade to 10.34.0 or later
npm install pnpm@10.34.0
Technical details
A path traversal vulnerability exists in pnpm's `@pnpm/patch-package` library due to insufficient validation of file paths in `.patch` files. The vulnerability occurs in the `applyPatchToDir` function where the patch parser extracts paths from `diff --git` headers using a regular expression without sanitizing for `../` sequences. An attacker can exploit this by providing a malicious patch file via a pull request; when a user runs `pnpm install`, the `executeEffects` function in `apply.js` uses these unsanitized paths to perform `fs.writeFileSync` or `fs.unlinkSync` operations. This allows for arbitrary file creation, modification, or deletion with the privileges of the user running the install. The issue is fixed in versions 10.34.0 and 11.4.0.
Affected products
- pnpm pnpm < 10.34.0, >= 11.0.0 < 11.4.0
Identifiers
- CVE-2026-50015
- GHSA-rxhj-4m44-96r4
Timeline
- 2026-05-28: disclosed
- 2026-06-25: advisory: NVD publication date
- 2026-06-26: patched: GitHub Advisory reviewed and updated with patched versions