CVE-2026-24131 pnpm has Path Traversal via arbitrary file permission modification
MediumCVSS 6.7
EPSS 0.27%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
5 packages: 3 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/org.keycloak-keycloak-parent(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/org.keycloak-keycloak-parent(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| alpine/pnpm(Alpine v3.23) | < 10.33.4-r0 | 10.33.4-r0 | Fixed |
| npm pnpm(npm) | < 10.28.2 | 10.28.2 | Fixed |
| pnpm | < 10.28.2; = < 10.28.2 | 10.28.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pnpm | = < 10.28.2 | No fix listed |
| npm pnpm(npm) | < 10.28.2 | 10.28.2 |
| redhat/org.keycloak-keycloak-parent(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/org.keycloak-keycloak-parent(Red Hat:jbosseapxp) | All versions | No fix listed |
| alpine/pnpm(Alpine:v3.23) | < 10.33.4-r0 | 10.33.4-r0 |
| pnpm | < 10.28.2 | 10.28.2 |
References
- https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq exploit vendor-advisory
- https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943 patch
- https://github.com/pnpm/pnpm/releases/tag/v10.28.2 release-notes
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2433115 issue-tracking
- www.cve.org
- nvd.nist.gov
- security.alpinelinux.org vendor-advisory
- github.com product