# CVE-2026-24131: pnpm has Path Traversal via arbitrary file permission modification

- Severity: Medium 6.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-26T21:29:58.000Z
- Modified: 2026-06-17T10:22:40.880Z
- Also known as: GHSA-v253-rj99-jwpq
- Weaknesses: CWE-22, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

pnpm is a package manager. Prior to version 10.28.2, when pnpm processes a package's `directories.bin` field, it uses `path.join()` without validating the result stays within the package root. A malicious npm package can specify `"directories": {"bin": "../../../../tmp"}` to escape the package directory, causing pnpm to chmod 755 files at arbitrary locations. This issue only affects Unix/Linux/macOS. Windows is not affected (`fixBin` gated by `EXECUTABLE_SHEBANG_SUPPORTED`). Version 10.28.2 contains a patch.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 10.28.2; before 10.28.2
- pnpm (npm): before 10.28.2

## Every score

- GitHub_M: CVSS:4.0 6.7 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq> (exploit, vendor-advisory, web)
- <https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943> (patch, web)
- <https://github.com/pnpm/pnpm/releases/tag/v10.28.2> (release-notes, web)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2026-24131](https://www.cve.org/CVERecord?id=CVE-2026-24131), CVE Terms of Use, modified 2026-01-27
- GitHub Advisory Database: [GHSA-v253-rj99-jwpq](https://github.com/advisories/GHSA-v253-rj99-jwpq), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-24131](https://nvd.nist.gov/vuln/detail/CVE-2026-24131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-24131 · Whole record: https://cve.day/CVE-2026-24131.json · Rebuilt by cve.day 2026-11-25T22:59:13.198Z
