{"schemaVersion":3,"id":"CVE-2026-112942","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-20T14:48:06.676Z","modified":"2026-10-20T14:48:06.676Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.5,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.5,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"vitejs","product":"launch-editor","name":"launch-editor","label":"launch-editor","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.14.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.14.2","eol":null,"hubHref":"/vendor/vitejs/launch-editor"},{"vendor":"vitejs","product":"vite","name":"vite","label":"vite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.3.0, < 8.3.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.2.0, < 8.2.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.1.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, < 7.3.7","noFixRecorded":false,"fixedIn":null},{"text":"< 6.4.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 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","eol":null,"hubHref":"/vendor/vitejs/vite"},{"vendor":"vitejs","product":"vite-plus","name":"vite-plus","label":"vite-plus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0","eol":null,"hubHref":"/vendor/vitejs/vite-plus"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm","label":"github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679","label":"github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/launch-editor/releases/tag/v2.14.2","label":"github.com/vitejs/launch-editor/releases/tag/v2.14.2","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-20T14:48:06.676Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:37:19.265Z","stale":false,"partial":false}}