CVE-2026-24131CWE-22CWE-732

pnpm has Path Traversal via arbitrary file permission modification

Medium · published January 26, 2026

CVSS v4.0
6.7
EPSS
0%
Percentile
18.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.7 · MEDIUM
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
EPSS
0.00271 · 18.3th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-732 · Incorrect Permission Assignment for Critical Resource
Published
2026-01-26T22:03Z
EPSS history
Timeline
  • 26 JAN 22:03Z
    pnpm has Path Traversal via arbitrary file permission modification
    cvelistv5