{"id":"CVE-2026-24056","published":"2026-01-26T21:59:32Z","modified":"2026-01-27T21:39:25Z","title":"pnpm has symlink traversal in file:/git dependencies","vendor":"pnpm","product":"pnpm","tier":"tail","description":{"text":"pnpm is a package manager. Prior to version 10.28.2, when pnpm installs a `file:` (directory) or `git:` dependency, it follows symlinks and reads their target contents without constraining them to the package root. A malicious package containing a symlink to an absolute path (e.g., `/etc/passwd`, `~/.ssh/id_rsa`) causes pnpm to copy that file's contents into `node_modules`, leaking local data. The vulnerability only affects `file:` and `git:` dependencies. Registry packages (npm) have symlinks stripped during publish and are NOT affected. The issue impacts developers installing local/file dependencies andCI/CD pipelines installing git dependencies. It can lead to credential theft via symlinks to `~/.aws/credentials`, `~/.npmrc`, `~/.ssh/id_rsa`. 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.00539,"percentile":0.3889,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-m733-5w8f-5ggw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnpm/pnpm/commit/b277b45bc35ae77ca72d7634d144bbd58a48b70f","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnpm/pnpm/releases/tag/v10.28.2","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":7.78},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"pnpm","affectedVersions":[{"vendor":"pnpm","product":"pnpm","versions":["< 10.28.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-27T21:39:16.955257Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"pnpm","vulnerableRanges":["<10.28.2"],"patched":["10.28.2"],"from":["GHSA-m733-5w8f-5ggw"],"provenance":"source"}],"summary":{"text":"In pnpm, the flaw lies in how the package manager handles file: (directory) and git: dependencies, where symlinks are followed and their targets read without being confined to the package root. An attacker who can supply a malicious package with a symlink to a local absolute path, such as an SSH key or cloud credentials file, can cause its contents to be copied into node_modules when a developer or CI/CD pipeline installs that dependency locally, which requires user interaction to trigger the install.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:01Z"},"euvd":{"id":"EUVD-2026-4658","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23888","published":"2026-01-26","fixed":"10.28.1","kev":false},{"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,"link":{"from":"CVE-2026-23890","to":"CVE-2026-24056","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:pnpm","fromFixed":"10.28.1","toFixed":"10.28.2","daysApart":0}]}},{"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},{"cve":"CVE-2026-50014","published":"2026-06-25","fixed":"11.4.0","kev":false}],"package":"npm:pnpm"}}