Skip to main content
EPSS 0.4%top 68%

pnpm: hoisted install imports lockfile alias outside node_modules (CVE-2026-59196)

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

Description

pnpm versions prior to 10.34.4 and 11.7.0 contain a vulnerability where a crafted lockfile alias can cause directory traversal outside the hoisted node_modules directory or overwrite pnpm-owned layout directories. This issue allows manipulation of the package installation layout. The vulnerability is fixed in versions 10.34.4 and 11.7.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.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:15:58 UTC

Technical Analysis

pnpm, a package manager, had a vulnerability (CVE-2026-59196) in versions before 10.34.4 and 11.7.0 where a specially crafted lockfile alias could be joined directly under a hoisted node_modules directory. This allowed traversal aliases to escape the node_modules directory and reserved aliases such as .bin or .pnpm to overwrite pnpm-owned layout directories. This flaw could lead to integrity violations of the package installation layout. The vulnerability has been addressed and fixed in versions 10.34.4 and 11.7.0.

Potential Impact

The vulnerability allows an attacker to manipulate the package installation layout by escaping the node_modules directory or overwriting critical pnpm-owned directories. This can lead to integrity issues and potentially impact the integrity of installed packages. The CVSS score of 7.1 indicates a 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 and has been released in pnpm versions 10.34.4 and 11.7.0. Users should upgrade to at least these versions to remediate the vulnerability.

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

Threat ID: 6ac2c0ae2cdf04f65652344c

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

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

Last updated: 10/05/2026, 06:48:17 UTC

Views: 8

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