CVE-2026-137190: Vite+: Shell Command Injection via an Unvalidated Registry Version String
vp env use changes the active runtime for the current terminal by printing shell statements that a wrapper in the user’s profile evaluates, so anything in that output is shell code. With no project file selecting a version, Vite+ asks the registry for the latest one, the registry comes from an .npmrc inside the project directory, and the reply is interpolated into an export statement unquoted and unchecked. A cloned repository can therefore name a server it controls and answer with a version string carrying shell commands, which run in the developer’s shell when that command is given the documented --no-install flag.
References
- github.com/advisories/GHSA-p79r-mf8q-r78h
- github.com/voidzero-dev/vite-plus/commit/92edd550cf8d801d040fa3559aae906e8fa42dab
- github.com/voidzero-dev/vite-plus/pull/3395
- github.com/voidzero-dev/vite-plus/releases/tag/v1.5.1
- github.com/voidzero-dev/vite-plus/security/advisories/GHSA-p79r-mf8q-r78h
- nvd.nist.gov/vuln/detail/CVE-2026-137190
Code Behaviors & Features
Detect and mitigate CVE-2026-137190 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →