Skip to content
OpenAdvisories
Medium · 6.7 CVE-2026-24131 EUVD-2026-4653GHSA-v253-rj99-jwpq

pnpm has Path Traversal via arbitrary file permission modification

Published Jan 26, 2026 · Updated Jan 27, 2026 · 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.

Affected products

VendorProductAffectedFixed
pnpm pnpm < 10.28.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Alpine v3.23 pnpm 10.33.4-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling pnpm-stage0 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm pnpm < 10.28.2 10.28.2 GHSA-v253-rj99-jwpq

References