npm
CVE-2026-137190
Vite+: Shell Command Injection via an Unvalidated Registry Version String
- Severity
- High 7.0
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 1.5.1
- Exploit chance
- 0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 1 Dec 2026
- Attack
- Needs local access · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H- Also known as
- GHSA-p79r-mf8q-r78h
- Sources
- OSV.dev and GitHub
Description
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.
The statement is built by direct interpolation, and the module documents that the wrapper evaluates it:
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).
Affected software
| Software | Affected versions |
|---|---|
vite-plusnpm · osv:npm:vite-plus |
|
About vite-plus
- Weekly downloads (npm)
- 5,323,813npm, 1 Dec 2026
Vulnerabilities in vite-plus
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-137191Vite+: Code Execution via an Unverified Package Manager Download from a Repository-Named RegistryHigh 7.8 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-137190
- GitHub Advisory Database https://github.com/advisories/GHSA-p79r-mf8q-r78h