cve.bz

CVE-2026-112943 vitejs: OS Command Injection

6.3 mediumEPSS 0.4%Fix available

Medium (6.3) in vitejs. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in launch-editor 2.14.2.

On this page
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, launch-editor did not escape % on Windows when passing an argument to cmd. When an environment variable contained a malicious value, it was possible that that content to be executed. This vulnerability is fixed in 2.14.2.

Severity

CVSS 4.0

6.3 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS
0.4% (unchanged from 0.4% a week ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • launch-editor (npm): fixed in 2.14.2
  • vite (npm): fixed in 8.3.3, 8.2.4, 8.1.6, 7.3.7, 6.4.4
  • vite-plus (npm): fixed in 1.1.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-112943 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112943?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112943?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112943 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
vitejs launch-editor< 2.14.2
vitejs vite>= 8.3.0, < 8.3.3
vitejs vite>= 8.2.0, < 8.2.4
vitejs vite>= 8.0.0, < 8.1.6
vitejs vite>= 7.0.0, < 7.3.7
vitejs vite< 6.4.4
vitejs vite-plus< 1.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-698v-4r3x-3vcvnpmlaunch-editor<2.14.22.14.2
GHSA-698v-4r3x-3vcvnpmvite>=8.3.0 <8.3.38.3.3
GHSA-698v-4r3x-3vcvnpmvite>=8.2.0 <8.2.48.2.4
GHSA-698v-4r3x-3vcvnpmvite>=8.0.0 <8.1.68.1.6
GHSA-698v-4r3x-3vcvnpmvite>=7.0.0 <7.3.77.3.7
GHSA-698v-4r3x-3vcvnpmvite<6.4.46.4.4
GHSA-698v-4r3x-3vcvnpmvite-plus<1.1.01.1.0

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has evaluated this vulnerability as having an Important security impact because successful exploitation could allow an attacker to achieve arbitrary command execution within the application context. The defect specifically arises from argument handling when delegating execution to the Windows command shell. Because standard Red Hat environments and containerized distributions operate on Linux systems, typical deployments do not rely on Windows command interpreters and are not directly exposed to this attack vector.

Red Hat's mitigation

--- CME Mitigation Guidance (2026-10-20) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to eliminate shell invocation when launching editors on Windows or enforce strict argument allowlists to avoid passing unescaped arguments directly to cmd.exe: upgrade to launch-editor 2.14.2 (or the fixed Grafana/Prometheus builds), which reject arguments containing percent signs, carriage returns, or line feeds by throwing an error instead of passing them to cmd.exe, closing all 4 injection vectors (environment-variable expansion, NTFS alternate data streams, crafted filenames, crafted relative path referencing %CD%). Until patched, this is only a concern on Windows systems running applications that pass user-controlled file paths or arguments to launch-editor — Linux and macOS deployments are unaffected — so restrict and audit who can set environment variables, prohibit placing files containing percent characters, ampersands, or line breaks in working directories, and validate file paths before invoking launch-editor. As a compensating measure, strip carriage returns and line feeds to block command separation and multiline command injection payloads passed into the Windows command shell, deploy Windows Defender Application Control in enforced mode to block unauthorized binaries an injected subcommand might drop, and restrict path characters using allowlist validation to prevent percent signs and line breaks from reaching launch-editor. These controls limit blast radius and contain exploitation, but they do not fix the underlying improper argument escaping defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1307 Command Injection Prevention (No Shell Invocation) (high)

ProductPackageStateAdvisory
Red Hat Hardened Imagesgrafana13.1Not affected
Red Hat Hardened Imagesgrafana13.2Not affected
Red Hat Hardened Imagesprometheus3.13Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-112943.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON