Skip to main content
EPSS 0.6%top 52%

pnpm: A tarball dependency's manifest `name` escapes node_modules → arbitrary file write/overwrite on install (CVE-2026-82393)

0
High
Published: 09/03/2026 (09/03/2026, 09:51:06 UTC)
Source: GCVE Database
Product: pnpm

Description

A vulnerability in pnpm prior to versions 10.34.5 and 11.11.0 allows a tarball dependency's manifest name to perform path traversal outside node_modules during installation. This leads to arbitrary file write or overwrite on the filesystem, potentially replacing critical files such as shell startup scripts, Git hooks, or installed package code, which can result in code execution. The issue arises because slash characters are not properly rejected in scoped package names, enabling crafted package manifests to escape intended directories. This vulnerability is fixed in pnpm versions 10.34.5 and 11.11.0.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Homebrewmore threats →ghsa
pnpm
pkg:brew/pnpm
Affected versions
<11.11.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:15:51 UTC

Technical Analysis

pnpm, a package manager, suffers from a path traversal vulnerability in its handling of tarball dependency manifests prior to versions 10.34.5 and 11.11.0. The vulnerability occurs because the package.json manifest's name field in a tarball dependency can contain scoped path traversal sequences that are not properly sanitized. The code in pnpm11/resolving/npm-resolver/src/pickPackage.ts only rejects slash characters for unscoped names, allowing scoped names to bypass this check. During the installation process, the unvalidated name is used in raw path joins in multiple internal modules, causing extraction of files outside the node_modules directory. This allows an attacker to overwrite arbitrary files on the filesystem even when the --ignore-scripts flag is used. Overwritten files can include shell startup files, Git hooks, or package code, potentially leading to code execution. The vulnerability is tracked as CVE-2026-82393 and has a CVSS 3.1 score of 7.5 (high severity). Fixes are available in pnpm versions 10.34.5 and 11.11.0.

Potential Impact

Successful exploitation allows an attacker to write or overwrite arbitrary files on the victim's filesystem during package installation. This can lead to replacement of critical files such as shell startup scripts, Git hooks, or installed package code, which may result in arbitrary code execution. The vulnerability can be triggered even when the --ignore-scripts flag is used, increasing the risk of exploitation. The CVSS score of 7.5 reflects high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available and users should upgrade pnpm to version 10.34.5 or later, or 11.11.0 or later. Applying these official patches will prevent the path traversal vulnerability. Until upgraded, users should be cautious when installing packages from untrusted sources. No additional vendor advisory states that no action is required or that the issue is already mitigated.

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

Threat ID: 6ac2c0ae2cdf04f65652344a

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

Last enriched: 10/04/2026, 21:15:51 UTC

Last updated: 10/05/2026, 18:48:23 UTC

Views: 21

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