CVE-2026-59196 PUBLISHED

pnpm: hoisted install imports lockfile alias outside node_modules

Assigner: GitHub_M
Reserved: 02.07.2026 Published: 06.07.2026 Updated: 06.07.2026

pnpm is a package manager. Prior to 10.34.4 and 11.7.0, a crafted lockfile alias could be joined directly under a hoisted node_modules directory. Traversal aliases could escape that directory, while reserved aliases such as .bin or .pnpm could overwrite pnpm-owned layout. This vulnerability is fixed in 10.34.4 and 11.7.0.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
CVSS Score: 7.1

Product Status

Vendor pnpm
Product pnpm
Versions
  • Version < 10.34.4 is affected
  • Version >= 11.0.0, < 11.7.0 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE
  • CWE-73: External Control of File Name or Path CWE