CVE-2026-112942 — Vulnerability in launch-editor — CVE Details
launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.56%). Schedule for your next planned update.
Does your project use an affected launch-editor version?
Paste your package-lock.json to check it for CVE-2026-112942 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
launch-editor checked fs.existsSync(fileName) before passing a supplied path to an editor command. On Windows, an attacker can bypass this check with a crafted path ending in \\..:line:column. This removes the requirement that the attacker be able to place a file with a malicious filename.
Combined with the % escaping issue described in GHSA-698v-4r3x-3vcv, this bypass can lead to OS command injection when an attacker controls the file argument.
Impact
Only apps that runs on Windows is affected.
Details
The earlier advisory assumed that fs.existsSync() required an attacker-controlled filename to exist. This advisory covers a bypass of that requirement.
A crafted value ending in \\..:1:1 is interpreted differently by launch-editor-middleware, launch-editor, and Windows:
launch-editor-middlewarecallspath.resolve()while the final path component is..:1:1, so it is not treated as a parent-directory component.launch-editortreats:1:1as a line-and-column suffix and removes it, leaving a path ending in\\...- On Windows,
fs.existsSync()accepts the resulting path as the existing parent directory even though the attacker-controlled preceding component does not exist. - Because the existence check passes, the crafted filename reaches the Windows shell command.
Advisory Timeline
- First published October 20, 2026 (37 days ago).
- Last revised October 20, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install launch-editor@2.14.2
npm install vite@6.4.4
npm install vite@8.1.6
npm install vite@8.3.3
npm install vite-plus@1.1.0
npm install vite@8.2.4
npm install vite@7.3.7
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 1 ecosystem: npm (3).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
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
References
- https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pmWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-112942ADVISORY
- https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679WEB
- https://github.com/vitejs/launch-editorPACKAGE
- https://github.com/vitejs/launch-editor/releases/tag/v2.14.2WEB
Frequently Asked Questions
- What is CVE-2026-112942?
- launch-editor: `fs.existsSync()` existence check can be bypassed on Windows. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2026-112942?
- CVE-2026-112942 affects launch-editor, vite and vite-plus. It has a 2.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-112942 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 85.8% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-53633CRITICAL
Vitest Browser: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
- CVE-2026-41211HIGH
Path traversal in vite-plus/binding downloadPackageManager() writes outside VP_HOME
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution
- CVE-2026-53632MEDIUM
launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows