cve.bz

CVE-2026-112942 vitejs

7.5 highEPSS 1.7%Fix available

High (7.5) in vitejs. EPSS 1.7% 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-middleware processes an attacker-controlled Windows file argument where the file argument ends in a parent-directory component plus a line-and-column suffix: the path is resolved while the suffix is still present, and launch-editor removes the suffix before its existsSync check, leaving the existing parent directory for existsSync and allowing the attacker-controlled file argument to pass filename existence validation without requiring the malicious filename to exist. The bypass can lead to OS command injection when combined with the separately described Windows percent-expansion flaw. This issue is fixed in version 2.14.2.

Severity

CVSS 4.0

7.5 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
1.7% (unchanged from 1.7% a week ago) estimated probability of exploitation activity in the next 30 days; 78th 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: total, assessed 2026-10-21. 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-77 Improper Neutralization of Special Elements used in a Command
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-112942 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112942?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112942?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-112942 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-587h-7wmj-h5pmnpmlaunch-editor<2.14.22.14.2
GHSA-587h-7wmj-h5pmnpmvite>=8.3.0 <8.3.38.3.3
GHSA-587h-7wmj-h5pmnpmvite>=8.2.0 <8.2.48.2.4
GHSA-587h-7wmj-h5pmnpmvite>=8.0.0 <8.1.68.1.6
GHSA-587h-7wmj-h5pmnpmvite>=7.0.0 <7.3.77.3.7
GHSA-587h-7wmj-h5pmnpmvite<6.4.46.4.4
GHSA-587h-7wmj-h5pmnpmvite-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 impact due to the severe potential blast radius of arbitrary command execution if an untrusted file path is evaluated by the service. However, this attack vector relies on Windows-specific path resolution and shell argument expansion behaviors to bypass file existence checks. Because Red Hat enterprise platforms and container images operate on Linux environments, the platform-specific mechanisms required to achieve exploitation are not present in standard deployments.

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 editor processes on Windows hosts to prevent percent-variable expansion: upgrade to launch-editor 2.14.2 (or the fixed Grafana/Prometheus builds), which resolve file paths with path.resolve() immediately after stripping line and column position suffixes and check UNC paths on the resolved file name, closing all 3 injection vectors (crafted file path with position suffixes, parent-directory traversal bypass, Windows percent-variable expansion). Until patched, this is only a concern on Windows hosts running launch-editor or launch-editor-middleware endpoints — non-Windows platforms are unaffected — so restrict network access to endpoints exposing launch-editor-middleware and audit file path inputs to block parent-directory sequences and percent characters. As a compensating measure, enforce strict allowlist validation to restrict path characters and reject unexpected percent signs and coordinate suffix formats, deploy a web application firewall to detect and block incoming HTTP requests with traversal patterns or command injection characters, deploy Windows Defender Application Control in enforced mode to block unauthorized binaries an injected subcommand might drop, and configure endpoint detection and response agents to monitor and alert on anomalous child process creation spawned from Node.js. These controls limit blast radius and contain exploitation, but they do not fix the underlying improper path validation defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1301 Path Traversal Prevention (Canonicalization) (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-112942.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

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

References

Check your stackJSON