Eight Vulnerabilities, One Package Manager
pnpm — the package manager powering Next.js, Nuxt, Astro, and a growing share of the modern JavaScript ecosystem — disclosed at least 8 distinct security vulnerabilities in a single coordinated release. The flaws span path traversal in configDependencies, arbitrary file deletion via patch-remove, hoisted alias escapes, manifest spoofing that bypasses allowBuilds, and stage download traversal. The highest-severity CVE scores CVSS 8.2.
This is not a vulnerability in a package. This is a vulnerability in the system that installs packages. The distinction matters: a malicious npm package affects projects that install it. A malicious lockfile manipulation affects every project that runs pnpm install.
The Lockfile Attack Surface
The path traversal vulnerabilities are the most concerning. configDependencies — a pnpm-specific feature for running scripts during install — can be abused to write files outside the node_modules boundary. Combined with the manifest spoofing flaw (which bypasses allowBuilds restrictions), an attacker can craft a lockfile that executes arbitrary code on pnpm install without triggering any of pnpm's safety mechanisms.
The patch-remove arbitrary deletion vulnerability adds a destructive capability: a crafted pnpm-lock.yaml can delete files outside the project directory during patch cleanup. The hoisted alias escape allows a package to masquerade as another package in the hoisted dependency tree, enabling dependency confusion attacks at the package manager level.
Package Manager as Single Point of Failure
The supply chain security conversation has focused on malicious packages, typosquatting, and compromised maintainer accounts. pnpm's 8-CVE disclosure shifts the aperture: the package manager itself is a single point of failure that every package in the ecosystem flows through. A vulnerability here affects not one project, but every project that uses pnpm.
npm, yarn, and pnpm collectively process billions of installs per month. Each has had security vulnerabilities. But 8 in one disclosure — spanning path traversal, arbitrary deletion, manifest spoofing, and alias confusion — suggests a systemic underinvestment in package manager security relative to its criticality.
Action Required
Update pnpm immediately. Audit CI/CD pipelines that run pnpm install from untrusted sources (forked PRs, community contributions). If you accept lockfile changes in pull requests, those changes are now a confirmed attack vector. Consider lockfile-lint or similar tools that validate lockfile integrity before install.


