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

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Published: 2026-10-20T14:48:06.676Z
- Modified: 2026-10-21T16:17:15.207Z
- Also known as: GHSA-587h-7wmj-h5pm
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- 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
- launch-editor (npm): before 2.14.2
- vite (npm): from 8.3.0 before 8.3.3; from 8.2.0 before 8.2.4; from 8.0.0 before 8.1.6; from 7.0.0 before 7.3.7; before 6.4.4
- vite-plus (npm): before 1.1.0

## Every score

- GitHub_M: CVSS:4.0 7.5 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm> (web)
- <https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679> (web)
- <https://github.com/vitejs/launch-editor/releases/tag/v2.14.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112942> (advisory)
- <https://github.com/vitejs/launch-editor> (package)

## Sources

- CVE List: [CVE-2026-112942](https://www.cve.org/CVERecord?id=CVE-2026-112942), CVE Terms of Use, modified 2026-10-21
- GitHub Advisory Database: [GHSA-587h-7wmj-h5pm](https://github.com/advisories/GHSA-587h-7wmj-h5pm), CC-BY-4.0, modified 2026-10-20
- NVD: [CVE-2026-112942](https://nvd.nist.gov/vuln/detail/CVE-2026-112942), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-112942 · Whole record: https://cve.day/CVE-2026-112942.json · Rebuilt by cve.day 2026-11-25T22:59:46.050Z
