CVE-2026-137190: Vite+: Shell Command Injection via an Unvalidated Registry Version String
Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-p79r-mf8q-r78h
Summary
Vite+ contains a shell command injection vulnerability in the 'vp env use' command due to improper sanitization of registry-provided version strings. Users of the vite-plus package should update to version 1.5.1 or later immediately.
Who is affected
The vulnerability allows attackers to execute arbitrary shell commands with the privileges of the developer by providing a malicious version string via a controlled registry configuration. Exploitation requires the victim to have the shell integration enabled and execute 'vp env use' with the '--no-install' flag within a directory containing a malicious '.npmrc' file.
Exploitability
The vulnerability is rated as High with a CVSS 3.1 score of 7.0, indicating it is exploitable locally with high attack complexity and user interaction. No EPSS data is available, and the vulnerability is not currently tracked by the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Update the npm vite-plus package to version 1.5.1 or later.
- Avoid running 'vp env use' commands in untrusted or cloned project repositories until the update is applied.
How to check your project
- Run 'npm list vite-plus' in your project directory to check if the installed version is between 0.3.3 and 1.4.0.
- Inspect project files for '.npmrc' configurations that point to unauthorized or suspicious registry URLs.
Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | vite-plus |
>= 0.3.3, < 1.5.1 | 1.5.1 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes the command injection?
The 'vp env use' command constructs shell export statements using version strings returned from the registry without performing any input validation or quoting/escaping for the target shell.
Is this vulnerability actively exploited?
There is no information suggesting active exploitation; the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) database.
Does this affect all shell types?
The vulnerability impacts POSIX, fish, and cmd shells by failing to quote the input, while PowerShell and Nushell are partially affected because they use quotes without properly escaping the injected content.
Original advisory description
References
- WEB https://github.com/voidzero-dev/vite-plus/security/advisories/GHSA-p79r-mf8q-r78h
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-137190
- WEB https://github.com/voidzero-dev/vite-plus/pull/3395
- WEB https://github.com/voidzero-dev/vite-plus/commit/92edd550cf8d801d040fa3559aae906e8fa42dab
- PACKAGE https://github.com/voidzero-dev/vite-plus
- WEB https://github.com/voidzero-dev/vite-plus/releases/tag/v1.5.1
Source records: GHSA-p79r-mf8q-r78h (OSV.dev).