pnpm scoped bin name Path Traversal allows arbitrary file creation outside node_modules/.bin (CVE-2026-23890)
Description
A path traversal vulnerability in pnpm prior to version 10.28.1 allows malicious npm packages to create executable files outside the intended node_modules/.bin directory. This occurs because bin names starting with '@' bypass validation, and path traversal sequences remain after scope normalization. The vulnerability can lead to overwriting configuration files, scripts, or other sensitive files. The issue is patched in pnpm version 10.28.1.
CVSS v3.1
Score 6.5medium
Affected software
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
Technical Analysis
pnpm versions before 10.28.1 contain a path traversal vulnerability in the bin linking mechanism. Specifically, malicious npm packages can exploit bin names starting with '@' to bypass validation and use path traversal sequences such as '../../' after scope normalization. This allows creation of executable shims or symlinks outside the node_modules/.bin directory, potentially overwriting critical files. The vulnerability affects all users installing npm packages with pnpm and CI/CD pipelines using pnpm. The issue is fixed in version 10.28.1.
Potential Impact
The vulnerability allows an attacker to create or overwrite executable files outside the intended directory, which can lead to modification of configuration files, scripts, or other sensitive files. This can compromise the integrity of the system or build environment. There is no indication of confidentiality or availability impact. The CVSS score is 6.5 (medium severity), reflecting the potential for integrity impact without requiring privileges or user interaction beyond package installation.
Mitigation Recommendations
Users should upgrade pnpm to version 10.28.1 or later, where the vulnerability is patched. The vendor has released an official fix, and applying this update will remediate the issue. No additional mitigations are specified or required beyond applying the patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-23890
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Patch Information
Threat ID: 6ac2c0b02cdf04f65652390c
Added to database: 10/04/2026, 21:10:08 UTC
Last enriched: 10/04/2026, 21:17:16 UTC
Last updated: 10/04/2026, 21:17:16 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.