CVE-2026-112942
published high CVSS 4.0 · 7.5launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vitejs | — | launch-editor< 2.14.2 | Affected | Not stated | GitHub_M |
| vitejs | — | vite>= 8.3.0, < 8.3.3 · >= 8.2.0, < 8.2.4 · >= 8.0.0, < 8.1.6 · >= 7.0.0, < 7.3.7 · < 6.4.4 | Affected | Not stated | GitHub_M |
| vitejs | — | vite-plus< 1.1.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | launch-editor | < 2.14.2 (affected) | GitHub_M · cna |
| 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) | GitHub_M · cna |
| vitejs | vite-plus | < 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
3Provider assertions
2GitHub_M · cna
launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 855c657f806655df1b9c97e2bca083b04085d96e7f63cca93526b780336b2cc7
- Ingested
- 21 Oct 2026, 15:58:42 UTC
- Source record
- Official CVE record