# CVE-2026-24056: pnpm has symlink traversal in file:/git dependencies

- Severity: Medium 6.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-26T21:02:33.000Z
- Modified: 2026-06-17T10:22:32.080Z
- Also known as: GHSA-m733-5w8f-5ggw
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 10.28.2; before 10.28.2
- pnpm (npm): before 10.28.2

## Every score

- GitHub_M: CVSS:4.0 6.7 Medium `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`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-m733-5w8f-5ggw> (exploit, vendor-advisory, web)
- <https://github.com/pnpm/pnpm/commit/b277b45bc35ae77ca72d7634d144bbd58a48b70f> (patch, web)
- <https://github.com/pnpm/pnpm/releases/tag/v10.28.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-24056> (advisory)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2026-24056](https://www.cve.org/CVERecord?id=CVE-2026-24056), CVE Terms of Use, modified 2026-01-27
- GitHub Advisory Database: [GHSA-m733-5w8f-5ggw](https://github.com/advisories/GHSA-m733-5w8f-5ggw), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-24056](https://nvd.nist.gov/vuln/detail/CVE-2026-24056), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-24056 · Whole record: https://cve.day/CVE-2026-24056.json · Rebuilt by cve.day 2026-11-25T22:59:13.198Z
