{"answers":{"affected":"14 open source packages ship an affected version, including launch-editor, vite and vite-plus.","exploited":"There is no known exploitation of CVE-2026-112942 in the wild and no public exploit code.","fix":"Upgrade launch-editor to 2.14.2 or later.","what":"CVE-2026-112942 is a high-severity vulnerability in vitejs launch-editor, published on 20 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-112942 and fix it if it is affected.\n\nWhat it is: CVE-2026-112942 is a high-severity vulnerability in vitejs launch-editor, published on 20 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-112942 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- launch-editor (npm): affected all versions; fixed in 2.14.2\n- launch-editor (npm): affected all versions; fixed in 2.14.2\n- vite (npm): affected all versions; fixed in 6.4.4\n- vite (npm): affected all versions; fixed in 6.4.4\n- vite (npm): affected from 7.0.0; fixed in 7.3.7\n- vite (npm): affected from 7.0.0; fixed in 7.3.7\n- vite (npm): affected from 8.0.0; fixed in 8.1.6\n- vite (npm): affected from 8.0.0; fixed in 8.1.6\n- vite (npm): affected from 8.2.0; fixed in 8.2.4\n- vite (npm): affected from 8.2.0; fixed in 8.2.4\n- vite (npm): affected from 8.3.0; fixed in 8.3.3\n- vite (npm): affected from 8.3.0; fixed in 8.3.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-112942/ (Markdown: https://insights.sbomify.com/CVE-2026-112942/index.md)","id":"CVE-2026-112942","markdown":"https://insights.sbomify.com/CVE-2026-112942/index.md","name":"CVE-2026-112942","record":{"aliases":["ECHO-e642-23bb-f67c","GHSA-587h-7wmj-h5pm","MINI-8h3p-79fw-2448","MINI-9422-82m8-c354","MINI-fc7r-4w4v-q36x","MINI-hpv5-j8g4-pj32","MINI-mm78-mhf9-c744","MINI-wg27-h76h-hj2r","ROOT-APP-NPM-CVE-2026-112942"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"launch-editor: `fs.existsSync()` existence check can be bypassed on Windows","id":"CVE-2026-112942","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":14,"n_references":3,"next":{"headline":"launch-editor: escapeCmdArgs() omits % escaping on Windows","id":"CVE-2026-112943"},"packages":[{"ecosystem":"npm","fixed":["2.14.2"],"introduced":["0"],"last_affected":[],"package":"launch-editor","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["2.14.2"],"introduced":["0"],"last_affected":[],"package":"launch-editor","purl":"pkg:npm/launch-editor","source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["6.4.4"],"introduced":["0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["6.4.4"],"introduced":["0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["7.3.7"],"introduced":["7.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["7.3.7"],"introduced":["7.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["8.1.6"],"introduced":["8.0.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["8.1.6"],"introduced":["8.0.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["8.2.4"],"introduced":["8.2.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["8.2.4"],"introduced":["8.2.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["8.3.3"],"introduced":["8.3.0"],"last_affected":[],"package":"vite","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["8.3.3"],"introduced":["8.3.0"],"last_affected":[],"package":"vite","purl":"pkg:npm/vite","source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"vite-plus","purl":null,"source":"GHSA-587h-7wmj-h5pm"},{"ecosystem":"npm","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"vite-plus","purl":"pkg:npm/vite-plus","source":"GHSA-587h-7wmj-h5pm"}],"prev":{"headline":"filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock","id":"CVE-2026-112941"},"products":["launch-editor","vite","vite-plus"],"published":"2026-10-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-21","vendors":["vitejs"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-112942/"}