CVE Explorer
CVE-2026-24131
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 cont
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-732","description":"CWE-732: Incorrect Permission Assignment for Critical Resource","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"pnpm","vendor":"pnpm","versions":[{"status":"affected","version":"< 10.28.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":6.7,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-732","description":"CWE-732: Incorrect Permission Assignment for Critical Resource","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"name":"https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943","tags":["x_refsource_MISC"],"url":"https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/references/1
{"name":"https://github.com/pnpm/pnpm/releases/tag/v10.28.2","tags":["x_refsource_MISC"],"url":"https://github.com/pnpm/pnpm/releases/tag/v10.28.2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/references/2
{"name":"https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0dab16c6f3a4a4276d90e09907e8979d3fec43f50c4e8cc056f9b3819aadfe0c · sha256:f3c3e218dc6f5ff1… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.