Intel

AIKIDO-2026-789279

pnpm is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 20, 2026

84

High Risk

This Affects:

JSpnpm
6.25.0 - 10.34.4
Fixed in 10.34.5
11.0.0 - 11.10.0
Fixed in 11.11.0
Are you affected? Scan for Free

TL;DR

During pnpm install, the isolated (virtual-store) linker, the Plug'n'Play resolver map, and the global-virtual-store slot builder construct filesystem paths from lockfile-controlled dependency names/aliases and from a dependency's own manifest name and version without validating them for path traversal. A crafted pnpm-lock.yaml entry, or a malicious dependency whose manifest name, alias, or snapshot version contains ../ sequences, can make the installer write package content, symlinks, or bins outside node_modules and the virtual store, even with --ignore-scripts or --frozen-lockfile --trust-lockfile. This lets a malicious dependency overwrite existing files such as shell startup files or git hooks, leading to code execution when the victim later runs a normal command. The fix routes these names through containment guards (safeJoinModulesDir and an unconditional lockfile dependency-name check) and rejects traversal names, aliases, and version segments with ERR_PNPM_INVALID_DEPENDENCY_NAME.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pnpm is vulnerable to Path Traversal in versions 6.25.0 - 10.34.4 and 11.0.0 - 11.10.0.

How to fix this

Upgrade the pnpm and/or the @pnpm/exe library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform