{"id":"CVE-2026-24131","state":"PUBLISHED","title":"pnpm has Path Traversal via arbitrary file permission modification","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.","publishedAt":"2026-01-26T22:03:33.808Z","updatedAt":"2026-01-27T21:37:51.868Z","severity":{"score":6.7,"label":"Medium","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["pnpm pnpm"],"affected":[{"vendor":"pnpm","product":"pnpm","versions":[{"version":"< 10.28.2","status":"affected"}]}],"references":["https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq","https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943","https://github.com/pnpm/pnpm/releases/tag/v10.28.2"],"weaknesses":["CWE-22","CWE-732"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/24xxx/CVE-2026-24131.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-24131","state":"PUBLISHED","datePublished":"2026-01-26T22:03:33.808Z","dateUpdated":"2026-01-27T21:37:51.868Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-21T18:38:22.474Z"},"containers":{"cna":{"title":"pnpm has Path Traversal via arbitrary file permission modification","descriptions":[{"lang":"en","value":"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":[{"vendor":"pnpm","product":"pnpm","versions":[{"version":"< 10.28.2","status":"affected"}]}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq","name":"https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943","name":"https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnpm/pnpm/releases/tag/v10.28.2","name":"https://github.com/pnpm/pnpm/releases/tag/v10.28.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.7,"baseSeverity":"MEDIUM","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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-732","lang":"en","description":"CWE-732: Incorrect Permission Assignment for Critical Resource","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-26T22:03:33.808Z"},"source":{"advisory":"GHSA-v253-rj99-jwpq","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-27T21:37:39.852167Z","id":"CVE-2026-24131","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-27T21:37:51.868Z"}}]}}}