← Back to CVE List
Vulnerability Intelligence Report
launch-editor: `fs.existsSync()` existence check can be bypassed on Windows

CVE-2026-112942

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.

No Active Exploit Signals
CVSS Base Score
7.5
HIGH
EPSS Probability:1.33%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-77 ↗CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Affected Products & Versions

Vendor Product Affected Versions
vitejs launch-editor < 2.14.2 (affected)
vitejs vite >= 8.3.0, < 8.3.3 (affected), >= 8.2.0, < 8.2.4 (affected), >= 8.0.0, < 8.1.6 (affected), >= 7.0.0, < 7.3.7 (affected), < 6.4.4 (affected)
vitejs vite-plus < 1.1.0 (affected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
1.329%

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityGitHub, Inc. · Vendor · USA
Reserved2026-10-19T21:30:47
Published2026-10-20T14:48:06
Last Updated2026-10-21T15:55:05

LINK COPIED TO CLIPBOARD