{"cve":"CVE-2026-24056","nvd":{"published":"2026-01-26T22:15:56.667","modified":"2026-06-17T10:22:32.080","status":"Analyzed","description":"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.","cvss_v4":{"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","score":6.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-59","CWE-22"],"references":["https://github.com/pnpm/pnpm/commit/b277b45bc35ae77ca72d7634d144bbd58a48b70f","https://github.com/pnpm/pnpm/releases/tag/v10.28.2","https://github.com/pnpm/pnpm/security/advisories/GHSA-m733-5w8f-5ggw"],"products":["pnpm:pnpm"],"source":"nvd","synced_at":"2026-10-19T22:21:16.563232421+00:00"},"epss":{"cve":"CVE-2026-24056","score":0.00523,"percentile":0.44376,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m733-5w8f-5ggw","url":"https://osv.dev/vulnerability/GHSA-m733-5w8f-5ggw","summary":"pnpm has symlink traversal in file:/git dependencies","modified":"2026-02-03T03:06:25.152863Z","packages":[{"ecosystem":"npm","name":"pnpm","purl":"pkg:npm/pnpm","ranges":["<10.28.2"],"fixed":["10.28.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}