Skip to main content

pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph (CVE-2026-82392)

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

Description

A path traversal vulnerability in pnpm prior to 10.34.5 and from 11.0.0 until 11.11.0 allows attacker-controlled package names in pnpm-lock.yaml to write files outside the node_modules directory during installation. This can lead to arbitrary code execution if lifecycle scripts are permitted. The issue is fixed in versions 10.34.5 and 11.11.0.

CVSS v3.1

Score 7.1high

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

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:55 UTC

Technical Analysis

pnpm, a package manager, improperly validates package names parsed from pnpm-lock.yaml keys using dp.parse(depPath).name. These unvalidated names are used in path operations (path.join) and package import functions, enabling path traversal that writes package contents outside the intended node_modules directory during pnpm install. When lifecycle scripts are allowed via dangerouslyAllowAllBuilds or matching allowBuilds entries, this can result in execution of attacker-controlled code with the user's privileges. The vulnerability affects versions prior to 10.34.5 and versions from 11.0.0 up to but not including 11.11.0. Fixes were released in versions 10.34.5 and 11.11.0.

Potential Impact

An attacker who can control package names in pnpm-lock.yaml can cause arbitrary files to be written outside the node_modules directory during installation. If lifecycle scripts are enabled, this can lead to arbitrary code execution with the privileges of the user running pnpm. The vulnerability does not require privileges and can be triggered remotely via crafted lockfiles. The CVSS score is 7.1 (high severity) with network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and low availability impact.

Mitigation Recommendations

A fix is available in pnpm versions 10.34.5 and 11.11.0. Users should upgrade to these versions or later to remediate this vulnerability. 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-82392
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac2c0ae2cdf04f65652344b

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

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

Last updated: 10/04/2026, 21:15:55 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