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}"), // vp_global_cli/src/commands/env/use.rs:31 Shell::Fish => format!("set -gx {variable} {value}"), // vp_global_cli/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 (`vp_global_cli/src/commands/env/use.rs:31-35`). The value is whatever the registry returned. Vite+ asks for the `latest` dist tag, which is hardcoded rather than typed by the developer, and the reply is passed through unchanged (`vp_global_cli/src/commands/env/package_manager.rs:173` and `vp_pm_cli/src/package_manager.rs:1066-1101`). The only check on the way to the shell inspects the optional integrity suffix, never the version itself (`vp_global_cli/src/commands/env/use.rs:76-93`). The same string is validated everywhere else: the dist-tag cache parses it before reuse, and installation rejects it outright (`vp_pm_cli/src/package_manager.rs:1041` and `:1151`). The gap is confined to the one path that prints shell code. Affected product: Vite+ (VoidZero Inc.), global `vp` command line interface, `env use` Affected versions: 0.
Properties
- Severity
- high
- Summary
- Vite+: Shell Command Injection via an Unvalidated Registry Version String
- Nvd fetched at
- 2026-12-01T02:29:07.656933+00:00
- Cvss severity
- HIGH
- Cvss score
- 7
- Retrieved at
- 2026-12-01T02:29:52+00:00
- Ghsa published
- 2026-12-01T01:35:46Z
- Source url
- https://github.com/advisories/GHSA-p79r-mf8q-r78h
- Ghsa updated
- 2026-12-01T01:35:47Z
- Ghsa id
- GHSA-p79r-mf8q-r78h
- Last source
- GitHub Advisory Database
- Score
- 7
- Cvss version
- 3.1
- Cve id
- CVE-2026-137190
- Cvss vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- First seen by Signal
- 2026-11-30T22:28:40+00:00
- Name
- CVE-2026-137190
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published at
- 2026-11-30T21:17:24.740
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph