Directory Traversal Affecting pnpm package, versions <10.28.2-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.28% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-PNPM-15147329
  • published30 Jan 2026
  • disclosed26 Jan 2026

Introduced: 26 Jan 2026

CVE-2026-24131  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade Minimos:latest pnpm to version 10.28.2-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pnpm package and not the pnpm package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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 &#34;directories&#34;: {&#34;bin&#34;: &#34;../../../../tmp&#34;} 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.

CVSS Base Scores

version 3.1