CVE-2026-24056
Medium · 6.5pnpm has symlink traversal in file:/git dependencies
CVSS
6.5
EPSS
0.5%
Published
Jan 26, 2026
CISA due date
—
The record
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. **Preconditions:** Only affects `file:` and `git:` dependencies. Registry packages (npm) have symlinks stripped during publish and are NOT affected.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | pnpm | 0 | 10.28.2 |
Related vulnerabilities
- GHSA-m733-5w8f-5ggw pnpm has symlink traversal in file:/git dependencies Same vulnerability
- GHSA-v253-rj99-jwpq pnpm has Path Traversal via arbitrary file permission modification Also affects pnpm
- GHSA-6pfh-p556-v868 pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip) Also affects pnpm
- GHSA-6x96-7vc8-cm3p pnpm has Windows-specific tarball Path Traversal Also affects pnpm
- GHSA-xpqm-wm3m-f34h pnpm scoped bin name Path Traversal allows arbitrary file creation outside… Also affects pnpm
- CVE-2026-23890 pnpm scoped bin name Path Traversal allows arbitrary file creation outside… Also affects pnpm
- CVE-2026-24131 pnpm has Path Traversal via arbitrary file permission modification Also affects pnpm
- CVE-2026-23888 pnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip) Also affects pnpm