Skip to main content

pnpm scoped bin name Path Traversal allows arbitrary file creation outside node_modules/.bin (CVE-2026-23890)

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

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A: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:16 UTC

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.

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-23890
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

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