CVE-2026-112942

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

  • High 7.5

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.

Key facts

Published
20 Oct 2026
Last changed
21 Oct 2026
Assigned by
GitHub_M
EPSS
1.694% likely to be exploited in the next 30 days, higher than 77.604% of CVEs (scores for 18 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: total

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 7.5CVSS 4.0, Highfrom the CNA (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

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
vitejslaunch-editor
  • < 2.14.2 (affected)
vitejsvite
  • >= 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)
vitejsvite-plus
  • < 1.1.0 (affected)

Timeline

  1. 20 Oct 2026 Published

Weakness

References