Vulnerabilities in pkg:npm/vite-plus

PACKAGE
Advisory Identifier: GHSA-p79r-mf8q-r78h
Advisory Summary

CVE-2026-137190 is a HIGH (CVSS 7.0) shell command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Vite+ libraries in the npm ecosystem. The issue involves shell command injection via an unvalidated registry version string. Remediation is available by upgrading affected packages to version 1.5.1.

9 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/vite-plus

9 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/vite-plus. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p79r-mf8q-r78h CVE-2026-137190 HIGH Vite+: Shell Command Injection via an Unvalidated Registry Version String
GHSA-5qr3-w62x-jmwx CVE-2026-137191 HIGH Vite+: Code Execution via an Unverified Package Manager Download from a Repository-Named Registry
GHSA-r825-w8mm-5pxw CVE-2026-112944 MODERATE launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
GHSA-587h-7wmj-h5pm CVE-2026-112942 HIGH launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
GHSA-698v-4r3x-3vcv CVE-2026-112943 MODERATE launch-editor: escapeCmdArgs() omits % escaping on Windows
GHSA-g8mr-85jm-7xhm CVE-2026-53633 CRITICAL Vitest Browser: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
GHSA-fx2h-pf6j-xcff CVE-2026-53571 HIGH vite: `server.fs.deny` bypass on Windows alternate paths
GHSA-v6wh-96g9-6wx3 CVE-2026-53632 MODERATE launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows
GHSA-33r3-4whc-44c2 CVE-2026-41211 HIGH Path traversal in vite-plus/binding downloadPackageManager() writes outside VP_HOME

CVE-2026-137190 at a Glance

CVE Identifier CVE-2026-137190
GHSA Identifier GHSA-p79r-mf8q-r78h
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Vite+
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-137190

To remediate this vulnerability, upgrade all affected Vite+ dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

vite-plus fixed: 1.5.1
npm install vite-plus@1.5.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls vite-plus

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-137190, inspect your project dependencies using npm:

npm ls vite-plus

Analyze the terminal output to locate any version of Vite+ in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.1), your application is affected.

Note: The npm ls vite-plus command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Vite+, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary `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. ## Details The statement is built by direct interpolation, and the module documents that the wrapper evaluates it: ```rust Shell::Posix => format!("export {variable}={value}"), // vp_global_cli/src/commands/env/use.rs:31 Shell::Fish => format!("set -gx {variable} {value}"), // vp_global_cli/src/commands/env/use.rs:32 ``` 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`). The value is whatever the registry returned. Vite+ asks for the `latest` dist tag, which is hardcoded rather than typed by the developer, and the reply is passed through unchanged (`vp_global_cli/src/commands/env/package_manager.rs:173` and `vp_pm_cli/src/package_manager.rs:1066-1101`). The only check on the way to the shell inspects the optional integrity suffix, never the version itself (`vp_global_cli/src/commands/env/use.rs:76-93`). The same string is validated everywhere else: the dist-tag cache parses it before reuse, and installation rejects it outright (`vp_pm_cli/src/package_manager.rs:1041` and `:1151`). The gap is confined to the one path that prints shell code. Affected product: Vite+ (VoidZero Inc.), global `vp` command line interface, `env use` Affected versions: 0.3.3 through 1.4.0 inclusive, and main at 4928bc5, confirmed on published 1.4.0 (darwin-arm64 and linux-x64-gnu) ## PoC The documented shell integration is loaded, as the installer instructs. `$REG` answers the dist-tag lookup with the payload version, and the repository ships one `.npmrc` line naming it. ```bash PAYLOAD='1.0.0; echo VP_ENV_USE_INJECTION_CONFIRMED > "$VP_POC_MARKER" #' printf 'registry=%s\n' "$REG" > hostile-repo/.npmrc ( cd hostile-repo && vp env use pnpm --no-install ) cat "$VP_POC_MARKER" ``` ```text Using pnpm v1.0.0; echo VP_ENV_USE_INJECTION_CONFIRMED > "$VP_POC_MARKER" # (resolved from registry fallback) VP_ENV_USE_INJECTION_CONFIRMED ``` Benign controls, one variable each: an ordinary version ran nothing, a repository without that `.npmrc` resolved a genuine version, and the default flow refused the string. ```text error: Install error: Invalid argument: invalid pnpm version "1.0.0; echo ... #": expected a version, range, or dist-tag ``` ## Impact Arbitrary commands run with the developer's permissions in their shell. The attacker reads anything that account can read and writes anything it can write, including shell startup files, and can end the shell. The session itself can be altered too, though the reproduction demonstrates only the file-system effect: its harness pipes the command through a filter, and a pipeline element runs in a subshell. Preconditions: the shell integration and `--no-install`, both documented.

CVE-2026-137190 Affected Vite+ Versions

1 component(s)
Fixed Versions:
1.5.1
Product / Package Ecosystem Affected Versions Fixed Version
vite-plus
npm
≥ 0.3.3
< 1.5.1
1.5.1

References

Frequently Asked Questions

What is CVE-2026-137190?
CVE-2026-137190 is a security vulnerability in Vite+ involving Shell Command Injection via an Unvalidated Registry Version String under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Vite+ versions are affected?
Affected versions include releases prior to 1.5.1 across affected packages: vite-plus.
What version fixes CVE-2026-137190?
Upgrading to 1.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vite-plus affected?
Yes, vite-plus is affected in releases prior to 1.5.1. Upgrade your dependency to 1.5.1 or later.
What is the CVSS score of CVE-2026-137190?
CVE-2026-137190 has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-137190?
CVE-2026-137190 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-137190?
Run the dependency tree command: 'npm ls vite-plus'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p79r-mf8q-r78h",
  "modified" : "2026-12-01T01:35:46Z",
  "published" : "2026-12-01T01:35:46Z",
  "aliases" : [ "CVE-2026-137190" ],
  "summary" : "Vite+: Shell Command Injection via an Unvalidated Registry Version String",
  "details" : "## Summary\n\n`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.\n\n## Details\n\nThe statement is built by direct interpolation, and the module documents that the wrapper evaluates it:\n\n```rust\nShell::Posix => format!(\"export {variable}={value}\"),       // vp_global_cli/src/commands/env/use.rs:31\nShell::Fish => format!(\"set -gx {variable} {value}\"),       // vp_global_cli/src/commands/env/use.rs:32\n```\n\nNo 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`).\n\nThe value is whatever the registry returned. Vite+ asks for the `latest` dist tag, which is hardcoded rather than typed by the developer, and the reply is passed through unchanged (`vp_global_cli/src/commands/env/package_manager.rs:173` and `vp_pm_cli/src/package_manager.rs:1066-1101`). The only check on the way to the shell inspects the optional integrity suffix, never the version itself (`vp_global_cli/src/commands/env/use.rs:76-93`).\n\nThe same string is validated everywhere else: the dist-tag cache parses it before reuse, and installation rejects it outright (`vp_pm_cli/src/package_manager.rs:1041` and `:1151`). The gap is confined to the one path that prints shell code.\n\nAffected product: Vite+ (VoidZero Inc.), global `vp` command line interface, `env use`\nAffected versions: 0.3.3 through 1.4.0 inclusive, and main at 4928bc5, confirmed on published 1.4.0 (darwin-arm64 and linux-x64-gnu)\n\n## PoC\n\nThe documented shell integration is loaded, as the installer instructs. `$REG` answers the dist-tag lookup with the payload version, and the repository ships one `.npmrc` line naming it.\n\n```bash\nPAYLOAD='1.0.0; echo VP_ENV_USE_INJECTION_CONFIRMED > \"$VP_POC_MARKER\" #'\nprintf 'registry=%s\\n' \"$REG\" > hostile-repo/.npmrc\n( cd hostile-repo && vp env use pnpm --no-install )\ncat \"$VP_POC_MARKER\"\n```\n\n```text\nUsing pnpm v1.0.0; echo VP_ENV_USE_INJECTION_CONFIRMED > \"$VP_POC_MARKER\" # (resolved from registry fallback)\nVP_ENV_USE_INJECTION_CONFIRMED\n```\n\nBenign controls, one variable each: an ordinary version ran nothing, a repository without that `.npmrc` resolved a genuine version, and the default flow refused the string.\n\n```text\nerror: Install error: Invalid argument: invalid pnpm version \"1.0.0; echo ... #\": expected a version, range, or dist-tag\n```\n\n## Impact\n\nArbitrary commands run with the developer's permissions in their shell. The attacker reads anything that account can read and writes anything it can write, including shell startup files, and can end the shell. The session itself can be altered too, though the reproduction demonstrates only the file-system effect: its harness pipes the command through a filter, and a pipeline element runs in a subshell. Preconditions: the shell integration and `--no-install`, both documented.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vite-plus"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.3"
      }, {
        "fixed" : "1.5.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.5.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/voidzero-dev/vite-plus/security/advisories/GHSA-p79r-mf8q-r78h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-137190"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/voidzero-dev/vite-plus/pull/3395"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/voidzero-dev/vite-plus/commit/92edd550cf8d801d040fa3559aae906e8fa42dab"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/voidzero-dev/vite-plus"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/voidzero-dev/vite-plus/releases/tag/v1.5.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78", "CWE-95" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T01:35:46Z",
    "nvd_published_at" : "2026-11-30T21:17:24Z"
  }
}