RCE via git dependency lifecycle scripts bypass in pnpm v10
pnpm v10.0.0 through v10.25 contains a bypass of its v10 security behavior that disables dependency lifecycle scripts by default. Although pnpm v10 blocks postinstall scripts via the onlyBuiltDependencies mechanism, dependencies sourced from Git repositories can still execute lifecycle scripts (notably prepare, prepublish, and prepack) during the fetch phase of pnpm install. This allows arbitrary code execution from a git-hosted dependency without the user’s explicit consent/approval, undermining the intended protection against automatic script execution during installation. The issue is fixed in pnpm v10.26.0.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
pnpm install when a project includes a malicious or compromised git-hosted dependency. This can enable theft of secrets (environment variables, credentials/tokens), tampering/backdooring of source or build artifacts, and broader supply-chain compromise, including in CI/CD environments where installs run automatically.Mitigation
If you can’t patch tonight, do this now.
pnpm --ignore-scripts), noting this may break builds that rely on lifecycle scripts.Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A pnpm PackageGate zero-day that can be exploited to bypass security controls intended to prevent automatic execution of lifecycle scripts (e.g., when using --ignore-scripts) and/or defeat lockfile integrity expectations during package installation.
A pnpm vulnerability (one of two referenced) fixed by pnpm; discussed in the context of PackageGate bypasses affecting JavaScript package managers, including bypass of script-execution protections and (for pnpm) lockfile integrity bypass.
Remote code execution risk in pnpm v10 where git-hosted dependencies can run lifecycle scripts (e.g., prepare/prepublish/prepack) during fetch/install, bypassing default script-execution restrictions.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.