Vite+: Shell Command Injection via an Unvalidated Registry Version String
CVE-2026-137190
Summary 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. Details The statement is built by direct interpolation, and the module documents that the wrapper evaluates it: rust Shell::Posix => format!("export {variable}={value}"), // vpglobalcli/src/commands/env/use.rs:31 Shell::Fish => format!("set -gx {variable} {value}"), // vpglobalcli/src/commands/env/use.rs:32 No shell arm quotes or escapes the value. The POSIX, fish and cmd arms add no quotes at all, and the PowerShell and Nushell arms wrap it in double quotes without escaping them (vpglobalcli/src/commands/env/use.rs:31-35). The value is whatever the registry…
Assessment
- CVSS
- 7 (v3.1)
- Severity
- High
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 1 December 2026
- Last updated
- 1 December 2026
- Affected
- voidzero-dev · vite-plus · vite-plus
- Weakness
- CWE-78, CWE-95
- Assigner
- GitHub_M
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
At the source
References
- https://github.com/voidzero-dev/vite-plus/security/advisories/GHSA-p79r-mf8q-r78h
- https://nvd.nist.gov/vuln/detail/CVE-2026-137190
- https://github.com/voidzero-dev/vite-plus/pull/3395
- https://github.com/voidzero-dev/vite-plus/commit/92edd550cf8d801d040fa3559aae906e8fa42dab
- https://github.com/voidzero-dev/vite-plus/releases/tag/v1.5.1
- https://github.com/advisories/GHSA-p79r-mf8q-r78h
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-137190