Skip to main content

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

0
High
Published: 08/13/2026 (08/13/2026, 17:28:25 UTC)
Source: GCVE Database
Product: pnpm

Description

pnpm versions prior to 10.28.2 have a symlink traversal vulnerability affecting file: and git: dependencies. When installing these dependencies, pnpm follows symlinks without restricting access to the package root, allowing a malicious package to cause local files (e.g., /etc/passwd, ~/.ssh/id_rsa) to be copied into node_modules. This can lead to local data leakage and credential theft. Registry packages are not affected. The issue is patched in version 10.28.2.

CVSS v4.0

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Homebrewmore threats →ghsa
pnpm
pkg:brew/pnpm
Affected versions
<11.21.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 21:17:12 UTC

Technical Analysis

pnpm, a package manager, has a vulnerability (CVE-2026-24056) in versions before 10.28.2 where it improperly follows symlinks in file: and git: dependencies during installation. This behavior allows a malicious package to create symlinks to arbitrary absolute paths on the local filesystem, causing pnpm to copy sensitive files such as /etc/passwd or private SSH keys into the node_modules directory. This vulnerability does not affect registry packages because symlinks are stripped during publishing. The vulnerability impacts developers using local or git dependencies and CI/CD pipelines installing git dependencies. The issue is fixed in pnpm version 10.28.2.

Potential Impact

Exploitation of this vulnerability can lead to local data leakage by copying sensitive files from the host system into the node_modules directory, potentially exposing credentials such as AWS credentials, npm configuration, and SSH private keys. This compromises the confidentiality of sensitive local files for users installing malicious file: or git: dependencies with vulnerable pnpm versions.

Mitigation Recommendations

Upgrade pnpm to version 10.28.2 or later, where the vulnerability is patched. Avoid using untrusted file: or git: dependencies until the upgrade is applied. No additional mitigations are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-pnpm-CVE-2026-24056
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
4.0

Threat ID: 6ac2c0b02cdf04f65652390b

Added to database: 10/04/2026, 21:10:08 UTC

Last enriched: 10/04/2026, 21:17:12 UTC

Last updated: 10/04/2026, 21:17:12 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses