CVE Feed
7.0 High

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
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

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
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-137190