Vite+ RCE & shell injection via malicious .npmrc registry — vite-plus (CVE-2026-137191, CVE-2026-137190)
Severity: high · Patch status: patched · Since 2026-12-01 · CVE-2026-137190, CVE-2026-137191
Two high-severity flaws in Vite+ (VoidZero's vp CLI, 23.7M monthly npm downloads) let a cloned repository achieve code execution on developers. CVE-2026-137191: on first install or upgrade, Vite+ downloads its pinned pnpm and executes it without verifying any digest, and takes the registry from a project-level .npmrc, so one committed line pointing at an attacker server yields arbitrary code execution on commands as benign as vp --version — before build-script approval applies. CVE-2026-137190: vp env use interpolates a registry-supplied version string unquoted into shell export statements, allowing shell command injection with the documented --no-install flag and shell integration. Both affect versions through 1.5.0 and are fixed in 1.5.1; public PoCs exist but no in-the-wild exploitation is reported. Every new install, upgrade, and ephemeral CI runner is exposed.
What to do
- Upgrade vite-plus / vp to 1.5.1 or later immediately
- Audit repositories for committed .npmrc files setting a registry and remove or restrict them
- Treat CI runners and dev machines that ran vp setup recently as potentially compromised; review credentials and tokens accessible to those accounts
- Block unknown registry hosts in egress/CI policies until upgraded
- Avoid running vp commands in untrusted repositories until patched
Fixed versions
Sources
All live incidents on Threat Watch