{"cve":"CVE-2026-112942","nvd":{"published":"2026-10-20T15:17:17.230","modified":"2026-10-21T16:17:15.207","status":"Awaiting Analysis","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.","cvss_v4":{"vector":"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","score":7.5},"cvss_v3":null,"cwes":["CWE-77"],"references":["https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679","https://github.com/vitejs/launch-editor/releases/tag/v2.14.2","https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm"],"products":[],"source":"nvd","synced_at":"2026-10-22T16:41:11.231219466+00:00"},"epss":{"cve":"CVE-2026-112942","score":0.01344,"percentile":0.71192,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-587h-7wmj-h5pm","url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","summary":"launch-editor: `fs.existsSync()` existence check can be bypassed on Windows","modified":"2026-10-20T20:00:04.608979840Z","packages":[{"ecosystem":"npm","name":"launch-editor","purl":"pkg:npm/launch-editor","ranges":["<2.14.2"],"fixed":["2.14.2"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=8.3.0 <8.3.3"],"fixed":["8.3.3"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=8.2.0 <8.2.4"],"fixed":["8.2.4"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=8.0.0 <8.1.6"],"fixed":["8.1.6"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=7.0.0 <7.3.7"],"fixed":["7.3.7"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":["<6.4.4"],"fixed":["6.4.4"]},{"ecosystem":"npm","name":"vite-plus","purl":"pkg:npm/vite-plus","ranges":["<1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}