CVE-2026-112942 launch-editor: `fs.existsSync()` existence check can be bypassed on Windows

High 7.5 Published Updated
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.

PackageAffectedFixed in
launch-editor npmAll versions2.14.2
launch-editor npmAll versions2.14.2
vite npmAll versions6.4.4
vite npmAll versions6.4.4
vite npmFrom 7.0.07.3.7
vite npmFrom 7.0.07.3.7
8 more packages
vite npmFrom 8.0.08.1.6
vite npmFrom 8.0.08.1.6
vite npmFrom 8.2.08.2.4
vite npmFrom 8.2.08.2.4
vite npmFrom 8.3.08.3.3
vite npmFrom 8.3.08.3.3
vite-plus npmAll versions1.1.0
vite-plus npmAll versions1.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.

Is CVE-2026-112942 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free