Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pnpm | Pnpm | < 10.28.2 |
Related Weaknesses (CWE)
References
- https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943Patch
- https://github.com/pnpm/pnpm/releases/tag/v10.28.2Release Notes
- https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpqExploitVendor Advisory
FAQ
What is CVE-2026-24131?
CVE-2026-24131 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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 malic...
How severe is CVE-2026-24131?
CVE-2026-24131 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-24131?
Check the references section above for vendor advisories and patch information. Affected products include: Pnpm Pnpm.