Vulnerabilities · 2026 · Pnpm
CVE-2026-24131
Pnpm vulnerability
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
Pnpm. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pnpm runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq · Exploit
- github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943 · Patch
- github.com/pnpm/pnpm/releases/tag/v10.28.2
- github.com/advisories/GHSA-v253-rj99-jwpq
- nvd.nist.gov/vuln/detail/CVE-2026-24131
- cve.org/CVERecord?id=CVE-2026-24131
More vulnerabilities in Pnpm products
CVE-2026-24056CVE-2026-23890CVE-2026-23889CVE-2026-23888CVE-2025-69264CVE-2025-69263CVE-2025-69262CVE-2024-53866All 12
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.