CVE-2026-82393
7.5pnpm · pnpm
A path traversal vulnerability in pnpm allows malicious tarball dependencies to overwrite arbitrary files outside the node_modules directory, potentially leading to remote code execution.
Executive summary
A critical path traversal vulnerability in pnpm versions prior to 10.34.5 and 11.11.0 allows for arbitrary file overwriting and potential remote code execution during package installation.
Vulnerability
This is a path traversal flaw caused by improper validation of scoped package names in tarball manifests. An unauthenticated attacker can exploit this during the installation process to write files to restricted locations on the filesystem.
Business impact
Successful exploitation allows an attacker to overwrite critical system files, such as shell configuration files or Git hooks, which leads to arbitrary code execution on the developer machine or build server. Given the CVSS score of 7.5, this high severity vulnerability poses a significant risk to the integrity and availability of development environments and CI/CD pipelines.
Remediation
Immediate Action: Update pnpm to version 10.34.5 or 11.11.0 immediately to include the necessary validation logic for scoped package names.
Proactive Monitoring: Review build logs for unexpected file write operations or attempts to access directories outside of the project root during the dependency resolution phase.
Compensating Controls: Execute package installations within isolated, ephemeral containers or sandboxed environments with restricted filesystem permissions to limit the impact of potential overwrites.
Exploitation status
Public Exploit Available: No
Analyst recommendation
Organizations relying on pnpm for dependency management must prioritize updating to the patched versions. Because this vulnerability can be triggered during standard package installation, the risk of supply chain compromise is high, necessitating immediate action to secure development and build environments.
More pnpm CVEs
Sources
- https://github.com/pnpm/pnpm/security/advisories/GHSA-vq4v-j7r6-jq4m
- https://github.com/pnpm/pnpm/pull/12872
- https://github.com/pnpm/pnpm/pull/12890
- https://github.com/pnpm/pnpm/commit/51300fd41c5e4c8f47635108e373cc3d1f324fa7
- https://github.com/pnpm/pnpm/commit/78e29fe5583a1e5d69ea05e414eff310f78d5ed9
- https://github.com/pnpm/pnpm/releases/tag/v10.34.5
- https://github.com/pnpm/pnpm/releases/tag/v11.11.0