CVE-2026-137190: Vite+: Shell Command Injection via an Unvalidated Registry Version String
Vite+ is a unified toolchain and entry point for web development. From 0.3.3 until 1.5.1, the global vp command line interface's vp env use path can place an unvalidated package-manager version from a repository-selected registry into generated shell export statements. When no project file selects a version, a cloned repository's .npmrc can direct the latest dist-tag lookup to an attacker-controlled registry, and a returned value containing shell syntax reaches the shell wrapper without strict semver validation or safe neutralization. A developer with the documented shell integration who runs vp env use with --no-install can therefore execute attacker-supplied commands with the developer account's permissions, permitting access to readable credentials and modification of writable files. The ordinary installation path rejects invalid versions, so the issue is limited to the affected dist-tag consumer and its stated prerequisites. This issue is fixed in version 1.5.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Vite+to a version that resolves this vulnerability.Fixed in 1.5.1
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Developers using the global vp CLI with its documented shell integration are exposed if they run vp env use --no-install in a cloned repository. The risk is specifically tied to repositories that do not select a package-manager version in a project file and whose .npmrc can redirect dist-tag lookups to an attacker-controlled registry.
What must an attacker control or induce for exploitation?
An attacker needs to cause the registry lookup to return a dist-tag version value containing shell syntax, typically by controlling the registry selected through the cloned repository's .npmrc. The developer must then run vp env use with --no-install, allowing the value to reach generated shell export statements.
Is the normal installation workflow affected?
No. The ordinary installation path rejects invalid version values; the issue is limited to the affected dist-tag consumer when used with the stated prerequisites.
What can be done if updating is not immediately possible?
Avoid running vp env use --no-install in untrusted or cloned repositories, particularly where no project file pins the package-manager version. Review repository .npmrc files and avoid registries that are not trusted for dist-tag resolution.
How can I determine whether a repository presents this risk?
Check whether the repository lacks a project-file version selection and includes an .npmrc that changes the registry used for package-manager dist-tag lookups. Also determine whether developers use the global vp CLI's shell integration and run vp env use --no-install.