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.
- CVSS
- 6.5Medium
- Chance of exploitation (EPSS)
- —
- Published
- Jan 26, 2026
- In the news
- Not yet
What to do
A moderate path traversal flaw in Pnpm that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-24056 published (CVSS 6.5) (Jan 26, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Mon, Jan 26, 2026
- CVECVE-2026-24056 published (CVSS 6.5)CVE Program · 22:15 UTC
References 3
- github.com Patch /pnpm/pnpm/commit/b277b45bc35ae77ca72d7634d144bbd58a48b70f
- github.com ExploitVendor Advisory /pnpm/pnpm/security/advisories/GHSA-m733-5w8f-5ggw
- github.com /pnpm/pnpm/releases/tag/v10.28.2