Skip to main content
← All vulnerabilities
CVE-2026-24131GHSA-V253-RJ99-JWPQ

pnpm has Path Traversal via arbitrary file permission modification

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.28.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pnpm pnpm

    fixed in 10.28.2

  • pnpmnpm

    fixed in 10.28.2

References 3

GitHub · pnpm/pnpm