Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish attacker-controlled registry
-
DeliveryCraft repo with hostile .npmrc
-
ExploitDeveloper clones and runs vp env use --no-install
-
ExecutionRegistry returns version carrying shell syntax
-
PersistWrapper evaluates unquoted export statement
-
ImpactExecute commands as developer account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following to coincide: the developer has the documented Vite+ shell-integration wrapper loaded in their profile (the installer instructs this); they run 'vp env use' with the '--no-install' flag specifically (the ordinary install path validates and rejects the malicious string); there is no project file selecting a package-manager version, forcing the fallback 'latest' dist-tag lookup; and the working directory is an attacker-influenced repository whose .npmrc points the registry at a server the attacker controls, which then returns a version value embedding shell syntax. Limiting factors that reduce realistic risk: the vector is local and needs the victim to actively run the command (UI:R), it is defeated by the normal install flow or by any project file pinning a version, and it only affects the single dist-tag consumer path that prints shell code - not the validated installation path. |
| Impact | This is a genuine but constrained issue, not a drive-by emergency. The CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H, base 7.0 High) is internally consistent with the mechanism: the attack is local and developer-triggered rather than remotely delivered (AV:L), requires several non-default prerequisites to line up (AC:H), needs no privileges on the Vite+ side (PR:N), and depends on the victim actively running a command (UI:R), with full code-execution impact in the developer's account (C:H/I:H/A:H). No CISA KEV listing is present in the input, so this is not confirmed actively exploited; no EPSS score was provided, so probabilistic exploitation likelihood cannot be quoted. A complete, demonstrated proof-of-concept is published in the GHSA advisory (GHSA-p79r-mf8q-r78h) showing the injection firing end-to-end, which materially raises practical risk over a theory-only finding. The vuln.today decision label is 'this_week' (not act_now/emergency), matching the picture of a real, patchable developer-supply-chain flaw that warrants prompt remediation rather than crisis response. The AC:H/UI:R chain - hostile cloned repo, no project file pinning a version, the '--no-install' flag, and the documented shell wrapper all being present simultaneously - makes this better suited to targeted developer compromise than mass exploitation. |
| Exploit ScenarioDerived | A developer with the documented Vite+ shell integration loaded clones an attacker-prepared repository that contains no runtime-version project file but ships an .npmrc pointing the registry at a server the attacker controls. When the developer runs 'vp env use pnpm --no-install', Vite+ falls back to a 'latest' dist-tag lookup against that hostile registry, which answers with a version string like '1.0.0; <commands> #' that is interpolated unquoted into a shell export statement and evaluated by the wrapper. The published GHSA PoC demonstrates this executing attacker-chosen commands with the developer's permissions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Shell command injection in the Vite+ (npm package vite-plus) global vp CLI allows a repository the developer has cloned to execute arbitrary commands in that developer's shell when they run vp env use <pm> --no-install. The fallback 'latest' dist-tag lookup can be redirected by an attacker-supplied .npmrc to a registry the attacker controls, and the version string it returns is interpolated unquoted into the export/set -gx statements that the documented shell-integration wrapper evaluates. Versions 0.3.3 through 1.5.0 are affected and 1.5.1 fixes the issue; this is a genuine but constrained local issue requiring the victim to run the command (UI:R) with a specific flag and shell integration loaded, not a drive-by emergency, and the vendor advisory includes a proof-of-concept reproduction. The normal installation path validates and rejects the malicious string, so exposure is limited to that single dist-tag consumer path.
RemediationAI
Vendor-released patch: 1.5.1 - upgrade the vite-plus package so the global vp CLI is at 1.5.1 or later (release notes at https://github.com/voidzero-dev/vite-plus/releases/tag/v1.5.1, fix commit https://github.com/voidzero-dev/vite-plus/commit/92edd550cf8d801d040fa3559aae906e8fa42dab, PR https://github.com/voidzero-dev/vite-plus/pull/3395, advisory https://github.com/voidzero-dev/vite-plus/security/advisories/GHSA-p79r-mf8q-r78h); upgrading is the only complete fix because the flaw is in the emitted shell text. Where upgrading must be staged, the exploitation preconditions can each be broken: do not run vp env use with --no-install (the ordinary install flow validates the version and refuses the payload, at the cost of an actual install), pin the package-manager version in a project file so the attacker-controlled latest dist-tag fallback is never consulted, and avoid running vp env use inside untrusted cloned repositories whose .npmrc you have not reviewed, since the registry URL is taken from that file. Removing the documented shell-integration wrapper from the shell profile would also prevent evaluation of the generated export statements, but it disables vp env use shell switching entirely.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Vite+ is a unified JavaScript toolchain, and its global vp CLI manages per-terminal package-manager/runtime selection through vp env use, which emits shell statements (POSIX export VAR=value, fish set -gx VAR value, plus cmd, PowerShell and Nushell arms) that a wrapper in the user's profile evaluates. In the affected code (vp_global_cli/src/commands/env/use.rs, lines 31-35) the version value is placed into those statements by direct interpolation with no quoting or escaping; the only pre-emission check inspects an optional integrity suffix, never the version itself. That value comes from fetch_dist_tag_version in vp_pm_cli/src/package_manager.rs, which requests the hardcoded latest dist tag, resolves the registry from an .npmrc inside the current project directory, and returned the registry's reply unchanged. The root cause class is OS command injection (CWE-78), with CWE-95 (code injection via evaluated output) also assigned because the generated text is evaluated by the shell wrapper. The same string is validated everywhere else - the dist-tag cache parses it before reuse and the installer rejects it - so the gap is confined to the one path that prints shell code. The upstream fix (commit 92edd550, PR #3395) adds a strict Version::parse check on the raw registry reply, rejecting any value that is not exact semver, including strings that would only be valid after whitespace trimming, plus a regression test covering payloads such as "1.0.0 not a version", "\n1.0.0" and "1.0.0 ".
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Local because a developer must run the CLI in a hostile repo (AV:L); multiple non-default prerequisites and version/config alignment make it AC:H; victim must run the command (UI:R); arbitrary code execution yields C:H/I:H/A:H.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 1 npm packages depend on vite-plus (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.3.3.
Technical POC Analysis
CWE-78 (OS command injection), with the advisory additionally classifying the sink as CWE-95 because the generated text is evaluated by the user's shell wrapper rather than executed directly.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137190 is a high-severity command injection vulnerability in the Vite+ (npm package vite-plus) CLI tool, affecting developers who have cloned a malicious repository and run a specific command. The flaw allows arbitrary command execution in the developer's shell when using the vp env use <pm> --no-install command with shell integration enabled, potentially compromising developer workstations. Leadership should care because this could lead to unauthorized access to source code and internal systems, though exploitation requires user interaction and specific conditions, limiting its scope.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-139668
GHSA-p79r-mf8q-r78h
NVD
CVE.org
EPSS
Exploit-DB