cve.bz

CVE-2026-82392 pnpm pnpm: Path traversal

7.1 highEPSS 0.6%Fix available

High (7.1) in pnpm pnpm. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in pnpm 10.34.5, 11.11.0.

On this page
pnpm is a package manager. Prior to 10.34.5 and from 11.0.0 until 11.11.0, pnpm parses the package name from attacker-controlled pnpm-lock.yaml packages keys with dp.parse(depPath).name and uses it without validation in deps/graph-builder/src/lockfileToDepGraph.ts and pnpm11/deps/graph-builder/src/lockfileToDepGraph.ts. The name reaches path.join(modules, pkgName), storeController.importPackage, and pnpm11/lockfile/to-pnp/src/index.ts, allowing package contents to be written outside node_modules when a user runs pnpm install. When dangerouslyAllowAllBuilds or a matching allowBuilds entry permits lifecycle scripts, the escaped package can execute code with the user's privileges. This issue is fixed in versions 10.34.5 and 11.11.0.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-09-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • pnpm (npm): fixed in 10.34.5, 11.11.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-82392 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-82392?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-82392?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-82392 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
pnpm< 10.34.5
pnpm>= 11.0.0, < 11.11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c59q-g84q-2gj5npmpnpm<10.34.510.34.5
GHSA-c59q-g84q-2gj5npmpnpm>=11.0.0 <11.11.011.11.0

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important path traversal vulnerability in pnpm that allows an attacker to write arbitrary files outside the intended `node_modules` directory when a user executes `pnpm install` with a specially crafted `pnpm-lock.yaml`. While arbitrary file write is the default impact, this can escalate to arbitrary code execution if `dangerouslyAllowAllBuilds` or a matching `allowBuilds` entry is configured, enabling lifecycle scripts for the malicious package.

Red Hat's mitigation

To mitigate this vulnerability, avoid enabling `dangerouslyAllowAllBuilds` or adding untrusted package names to the `allowBuilds` configuration. By default, `pnpm` restricts lifecycle script execution for unknown packages, limiting the impact to arbitrary file writes. Users should exercise caution when installing packages from untrusted sources.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7amq-broker-bin.zipNot affected
Red Hat AMQ Broker 7amq-broker-maven-repository.zipNot affected
Red Hat Build of Keycloakkeycloak-operator.redhat-00001.zipNot affected
Red Hat Build of Keycloakrhbk-quarkus-dist.zipNot affected
Red Hat Hardened ImagesjaegerNot affected
Red Hat Hardened Imagesprometheus3.13Not affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap.1-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap.1-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap-runtime-maven-repository.zipNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-82392.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON