CVE-2026-112942
Last modified
CVE-2026-112942 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.33% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| vitejs | launch-editor | < 2.14.2 |
| 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 |
| vitejs | vite-plus | < 1.1.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-112942?
How severe is CVE-2026-112942?
How do I fix CVE-2026-112942?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-112936filelock is a platform-independent file lock for Python. Fro…6.1
- CVE-2026-112937filelock is a platform-independent file lock for Python. Fro…6.1
- CVE-2026-112939filelock is a platform-independent file lock for Python. Fro…4.7
- CVE-2026-11294Inappropriate implementation in Passwords in Google Chrome p…4.3
- CVE-2026-112940filelock is a platform-independent file lock for Python. Fro…7.1
- CVE-2026-112941filelock is a platform-independent file lock for Python. Fro…3.3
- CVE-2026-112943launch-editor allows users to open files with line numbers i…6.3
- CVE-2026-112944launch-editor allows users to open files with line numbers i…6.3
- CVE-2026-112945Vite is a frontend tooling framework for JavaScript. Prior t…2.1
- CVE-2026-112946Vite is a frontend tooling framework for JavaScript. Prior t…6.3
- CVE-2026-112947Vite is a frontend tooling framework for JavaScript. From 8.…6.3
- CVE-2026-112948Vitest is a testing framework powered by Vite. From 5.0.0-be…6.5
Are you affected by CVE-2026-112942?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
