CVE-2025-69264 pnpm v10+ Bypass "Dependency lifecycle scripts execution disabled by default"
Attackers can execute arbitrary code via git-hosted dependencies during installation, bypassing pnpm's default script execution restrictions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-69264?
CVE-2025-69264 is a high-severity vulnerability in pnpm, published on 7 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
pnpm is a package manager. Versions 10.0.0 through 10.25 allow git-hosted dependencies to execute arbitrary code during pnpm install, circumventing the v10 security feature "Dependency lifecycle scripts execution disabled by default". While pnpm v10 blocks postinstall scripts via the onlyBuiltDependencies mechanism, git dependencies can still execute prepare, prepublish, and prepack scripts during the fetch phase, enabling remote code execution without user consent or approval. This issue is fixed in version 10.26.0.
Weakness: CWE-693
Which versions are affected by CVE-2025-69264?
2 open source packages ship an affected version, including pnpm. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pnpm npm | From 10.0.0 | 10.26.0 |
pnpm npm | From 10.0.0 | 10.26.0 |
Products include Pnpm Pnpm.
How do I fix CVE-2025-69264?
Upgrade pnpm to 10.26.0 or later.
Is CVE-2025-69264 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-69264 exists.
Other vulnerabilities in pnpm
- CVE-2026-50016 pnpm: Transitive dependency alias path traversal allows project path override via symlink replacement
- CVE-2026-55698 pnpm: Project env lockfile can short-circuit package-manager resolution and execute lockfile-selected pnpm bytes
- CVE-2022-26183 Untrusted Search Path in PNPM
- CVE-2026-59195 pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-config
- CVE-2025-69262 pnpm vulnerable to Command Injection via environment variable substitution
Sources
Also known as GHSA-379q-355j-w6rj, MINI-95r4-whfj-29j9.