CVE-2026-24131
published medium CVSS 4.0 · 6.7pnpm has Path Traversal via arbitrary file permission modification
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pnpm | — | pnpm< 10.28.2 | Affected | Not stated | GitHub_M |
| Alpine Linux | v3.23 | pnpm | Fixed | 10.33.4-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pnpm | pnpm | < 10.28.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource
References
3Provider assertions
2GitHub_M · cna
pnpm has Path Traversal via arbitrary file permission modification
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f0a2c241f01f921cbfedb57b4cc3435b226bd0acee15e4462b81e11a32fa4841
- Ingested
- 23 Sep 2026, 09:06:19 UTC
- Source record
- Official CVE record