All vulnerabilities

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
Weakness
OS command injection (CWE-78)Eval injection (CWE-95)
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).

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
vite-plusnpm · osv:npm:vite-plus
  • From 0.3.3 before 1.5.1

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
Search the list for vite-plus

References