CVE-2026-112942 launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
6 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm launch-editor(npm) | < 2.14.2; <= 2.14.1 | 2.14.2 | Fixed |
| npm vite(npm) | < 6.4.4; <= 6.4.3; >= 7.0.0, < 7.3.7; >= 7.0.0, <= 7.3.6 +6 more | 6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3 | Fixed |
| npm vite-plus(npm) | < 1.1.0; <= 1.0.0 | 1.1.0 | Fixed |
| vitejs launch-editor | = < 2.14.2 | No fix listed | Versions listed |
| vitejs vite | = < 6.4.4; = >= 7.0.0, < 7.3.7; = >= 8.0.0, < 8.1.6; = >= 8.2.0, < 8.2.4 +1 more | No fix listed | Versions listed |
| vitejs vite-plus | = < 1.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vitejs launch-editor | = < 2.14.2 | No fix listed |
| vitejs vite | = >= 8.3.0, < 8.3.3 | No fix listed |
| vitejs vite | = >= 8.2.0, < 8.2.4 | No fix listed |
| vitejs vite | = >= 8.0.0, < 8.1.6 | No fix listed |
| vitejs vite | = >= 7.0.0, < 7.3.7 | No fix listed |
| vitejs vite | = < 6.4.4 | No fix listed |
| vitejs vite-plus | = < 1.1.0 | No fix listed |
| npm launch-editor(npm) | <= 2.14.1 | No fix listed |
| npm vite(npm) | >= 8.3.0, <= 8.3.2 | No fix listed |
| npm vite(npm) | >= 8.2.0, <= 8.2.3 | No fix listed |
| npm vite(npm) | >= 8.0.0, <= 8.1.5 | No fix listed |
| npm vite(npm) | >= 7.0.0, <= 7.3.6 | No fix listed |
| npm vite(npm) | <= 6.4.3 | No fix listed |
| npm vite-plus(npm) | <= 1.0.0 | No fix listed |
| npm launch-editor(npm) | < 2.14.2 | 2.14.2 |
| npm vite(npm) | >= 8.3.0, < 8.3.3 | 8.3.3 |
| npm vite(npm) | >= 8.2.0, < 8.2.4 | 8.2.4 |
| npm vite(npm) | >= 8.0.0, < 8.1.6 | 8.1.6 |
| npm vite(npm) | >= 7.0.0, < 7.3.7 | 7.3.7 |
| npm vite(npm) | < 6.4.4 | 6.4.4 |
| npm vite-plus(npm) | < 1.1.0 | 1.1.0 |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2556237 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679 patch
- https://github.com/vitejs/launch-editor/releases/tag/v2.14.2
- https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-105035 third-party-advisory