CVE-2026-112942 launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-112942?
CVE-2026-112942 is a high-severity vulnerability in vitejs launch-editor, published on 20 Oct 2026.
Official description
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.
Weakness: CWE-77
Which versions are affected by CVE-2026-112942?
14 open source packages ship an affected version, including launch-editor, vite and vite-plus.
| Package | Affected | Fixed in |
|---|---|---|
launch-editor npm | All versions | 2.14.2 |
launch-editor npm | All versions | 2.14.2 |
vite npm | All versions | 6.4.4 |
vite npm | All versions | 6.4.4 |
vite npm | From 7.0.0 | 7.3.7 |
vite npm | From 7.0.0 | 7.3.7 |
8 more packages
vite npm | From 8.0.0 | 8.1.6 |
vite npm | From 8.0.0 | 8.1.6 |
vite npm | From 8.2.0 | 8.2.4 |
vite npm | From 8.2.0 | 8.2.4 |
vite npm | From 8.3.0 | 8.3.3 |
vite npm | From 8.3.0 | 8.3.3 |
vite-plus npm | All versions | 1.1.0 |
vite-plus npm | All versions | 1.1.0 |
How do I fix CVE-2026-112942?
Upgrade launch-editor to 2.14.2 or later.
Is CVE-2026-112942 being exploited?
There is no known exploitation of CVE-2026-112942 in the wild and no public exploit code.
Sources
Also known as ECHO-e642-23bb-f67c, GHSA-587h-7wmj-h5pm, MINI-8h3p-79fw-2448, MINI-9422-82m8-c354, MINI-fc7r-4w4v-q36x, MINI-hpv5-j8g4-pj32 and 3 more.