{"id":"CVE-2026-24131","published":"2026-01-26T22:03:33Z","modified":"2026-01-27T21:37:51Z","title":"pnpm has Path Traversal via arbitrary file permission modification","vendor":"pnpm","product":"pnpm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.7,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00218,"percentile":0.07066,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-v253-rj99-jwpq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnpm/pnpm/releases/tag/v10.28.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":1.41},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"pnpm","affectedVersions":[{"vendor":"pnpm","product":"pnpm","versions":["< 10.28.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-27T21:37:39.852167Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"pnpm","vulnerableRanges":["<10.28.2"],"patched":["10.28.2"],"from":["GHSA-v253-rj99-jwpq"],"provenance":"source"}],"summary":{"text":"The pnpm package manager, prior to version 10.28.2, fails to validate that paths built from a package's directories.bin field stay within the package root, affecting Unix, Linux and macOS systems (Windows is not affected). A local attacker, or someone who has supplied a malicious npm package, can use this to make pnpm change file permissions to 755 at arbitrary locations on the system, and user interaction is required for the attack to occur.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:41Z"},"euvd":{"id":"EUVD-2026-4653","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pnpm-cve-2026-23890","parents":[{"from":"CVE-2026-23890","to":"CVE-2026-24131","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:pnpm","fromFixed":"10.28.1","toFixed":"10.28.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["pkg-manager/package-bins/src/index.ts"],"commits":["https://github.com/pnpm/pnpm/commit/8afbb1598445d37985d91fda18abb4795ae5062d","https://github.com/pnpm/pnpm/commit/17432ad5bbed5c2e77255ca6d56a1449bbcfd943"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-23889","published":"2026-01-26","fixed":"10.28.1","kev":false},{"cve":"CVE-2026-23890","published":"2026-01-26","fixed":"10.28.1","kev":false},{"cve":"CVE-2026-24056","published":"2026-01-26","fixed":"10.28.2","kev":false},{"cve":"CVE-2026-24131","published":"2026-01-26","fixed":"10.28.2","kev":false},{"cve":"CVE-2026-48995","published":"2026-06-25","fixed":"11.0.7","kev":false,"link":{"from":"CVE-2026-24131","to":"CVE-2026-48995","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:pnpm","fromFixed":"10.28.2","toFixed":"10.33.4","daysApart":150}]}},{"cve":"CVE-2026-50014","published":"2026-06-25","fixed":"11.4.0","kev":false},{"cve":"CVE-2026-50015","published":"2026-06-25","fixed":"11.4.0","kev":false}],"package":"npm:pnpm"}}