CVE-2026-112942 is a Windows-specific OS command injection vulnerability in the launch-editor npm package (and its dependents like vite and vite-plus). The root cause is a bypass of the fs.existsSync(fileName) existence check that was intended to prevent attacker-controlled filenames from reaching the Windows shell command.
The vulnerable flow is: (1) launch-editor-middleware calls path.resolve() on the user-supplied file query parameter while the final path component is ..:1:1, so it is not treated as a parent-directory component; (2) launchEditor calls parseFile() which strips the :1:1 line/column suffix, leaving a path ending in \..; (3) on Windows, fs.existsSync() accepts this path as the existing parent directory even though the attacker-controlled preceding component does not exist; (4) the existence check passes and the crafted filename reaches childProcess.exec(launchCommand, { shell: true }), enabling command injection (combined with the % escaping issue from GHSA-698v-4r3x-3vcv).
The fix (commit f13cd835d4b8e860b1d4d080ad8a490cc2463679) addresses this by moving parseFile into its own module and adding path.resolve(unresolvedFileName) so the .. component is collapsed before the existence check, causing the check to correctly fail for non-existent attacker-controlled paths. The two vulnerable functions are launchEditor (which performs the bypassable existence check and passes the filename to the shell) and parseFile (which strips the suffix without resolving the path).