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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-21
- Aliases: GHSA-587h-7wmj-h5pm, CGA-fgc5-jh86-x5jr, CGA-256v-26jx-hq2c, CGA-2jmj-f5jf-v47c, CGA-3p4r-43h3-gw3q, CGA-5m2g-972f-v46m, CGA-5vqp-vwv6-rr77, CGA-5w27-4rgg-6r87, CGA-8qq8-gq8m-wr3q, CGA-rfv7-vxhf-3v89, CGA-w273-qr9m-w94g, CGA-w769-7ch4-v87j, CGA-x5gf-wmxj-cjf9, CGA-2wfx-qxx5-rxgx, CGA-3wr2-6mq7-6w4m, CGA-4vx7-3rv2-6868, CGA-8753-g8qq-xrj7, CGA-p39g-4q9g-m554, CGA-5v39-r4mr-gvxp, CGA-7v68-q9pq-wr5r, CGA-8hfm-c5pc-fchh, CGA-9262-f2jf-jw22, CGA-92jg-hv8m-67hc, CGA-cv9x-45hf-rvwh, CGA-ffw3-6644-mcgh, CGA-pw47-jv92-8xgw, CGA-qww3-5p3j-fv2p, CGA-v264-h65m-43xx, CGA-v8pf-77v7-pc9p, CGA-vv22-w7x6-7932, CGA-wwh9-m658-vccv, CGA-432g-49r8-42g6, CGA-53c5-86cp-7q9g, CGA-5gcq-rfrr-2r4p, CGA-76hp-7m24-wf2g, CGA-98m4-38jw-49vm, CGA-j3hw-jx62-g285, CGA-m7xp-69r3-9qv9, CGA-phrw-977p-q7xv, CGA-rh53-2m2f-x6rw, CGA-98fh-gh8p-49p6, CGA-44q4-q4w8-wpjv, CGA-45gc-mg2r-gxv3, CGA-783f-h544-4628, CGA-7fgp-rwrr-x58x, CGA-7qqq-m67q-8xfq, CGA-84p9-fqmg-2w87, CGA-8c6g-3jv8-cc95, CGA-9258-2pqm-8x5p, CGA-9j8m-gm8m-7qpv, CGA-cfmj-v66p-hgqf, CGA-f779-vccx-jhh6, CGA-h34j-67x3-jf95, CGA-jqr5-839g-8v3v, CGA-m3wj-9cwh-7qgv, CGA-mqvg-5vx8-vjgc, CGA-pc8x-2rf6-3fj4, CGA-vjhw-ggv2-7rgv, CGA-7frw-f94p-q9w3, CGA-gcpf-ffr2-f9cc, CGA-gwhx-jvjm-p8rx, CGA-pvwf-7868-c5gf, CGA-v3rq-g28c-fxgg, CGA-6gp7-339h-xrmv, CGA-ww7g-9gr2-f6qf, CGA-hjxx-8cpp-2qfc, CGA-9vqp-429f-qgwj, CGA-f726-hjgg-rcm3, CGA-38gq-6x7c-j4mc, CGA-cxwh-99cw-xm7c, CGA-hj98-36xh-mx79, CGA-wmf7-5548-jxhr, CGA-x7j2-r7rw-9m53, CGA-36hc-6qr9-2qm8, CGA-g722-hccx-ghjr, CGA-vm8q-m2m2-9w95
- Record: https://cvemate.com/vulnerability/CVE-2026-112942 · JSON: https://cvemate.com/vulnerability/CVE-2026-112942/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v4.0, CVE.org) 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
- EPSS: 1.694%, percentile 77.934%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 32)

- chainguard arangodb-3.12 (Chainguard): All versions (No fix recorded) \| \< 3.12.12.1-r10
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.9-r0
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.10-r0
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.9-r0
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.9-r1
- chainguard gitlab-rails-ce-19.3 (Chainguard): All versions (No fix recorded) \| \< 19.3.5-r4
- chainguard gitlab-rails-ce-19.4 (Chainguard): All versions (No fix recorded) \| \< 19.4.2-r6 \| \< 19.4.3-r0
- chainguard gitlab-rails-ce-19.5 (Chainguard): All versions (No fix recorded) \| \< 19.5.1-r1
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.9-r1
- chainguard kubeflow-pipelines-frontend (Chainguard): All versions (No fix recorded) \| \< 2.17.2-r16
- chainguard langfuse-3-worker (Chainguard): All versions (No fix recorded) \| \< 3.225.12-r3
- chainguard langfuse-4-worker (Chainguard): All versions (No fix recorded) \| \< 4.66.0-r1
- chainguard langfuse-fips-3-worker (Chainguard): All versions (No fix recorded) \| \< 3.225.12-r3
- chainguard langfuse-fips-4-worker (Chainguard): All versions (No fix recorded) \| \< 4.68.0-r0
- chainguard nextcloud-server-32 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm>
- <https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679>
- <https://github.com/vitejs/launch-editor/releases/tag/v2.14.2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112942>
- <https://github.com/vitejs/launch-editor>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112942.json>

---

Data as of 2026-12-05T08:09:44.731Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
