{"schema":"threatline.record/2","record":{"id":"CVE-2026-112943","aliases":["GHSA-698v-4r3x-3vcv"],"summary":"launch-editor: escapeCmdArgs() omits % escaping on Windows","details":"### Summary\n\n`launch-editor` did not escape `%` on Windows when passing an argument to `cmd`. When an environment variable contained a malicious value, it was possible that that content to be executed.\n\n### Impact\n\nOnly apps that match all of the following conditions are affected:\n\n- The user uses Windows\n- An attacker can place a file with the malicious filename containing `&` or `%`\n- Either of\n  - An attacker can inject an environment variable with a malicious value\n  - An attacker can add a NTFS alternate data stream to the file placed\n\n### Details\n\nUnlike `.sh` files, `.bat` / `.cmd` files on Windows cannot be called directly using [`child_process.spawn`](https://nodejs.org/docs/latest-v24.x/api/child_process.html#child_processspawncommand-args-options) and requires passing them as an argument of `cmd.exe`. To do so, launch-editor escapes the arguments passed to `cmd.exe`. But `launch-editor` did not escape `%` which is used for environment variables.\n\nBecause `launch-editor` checks if the argument matches an existing filename, the attack requires the attacker to be able to place a file.\n\n- If the attacker can inject an environment variable as well, they can include the subcommand in the env variable (e.g. set ` &calc.exe ` to `%ENV%`) and call `launchEditor` with `something%ENV%`.\n- If the attacker can place a NTFS alternate data stream to the file (e.g. a NTFS alternate data stream named `~-38%calc.exe`), they can call `launchEditor` with `something %CMDCMDLINE:~-38%calc.exe`.\n- If the attacker can create a filename containing the `%CD%` and the subcommand (e.g. `&calc.exe `), they can call `launchEditor` with `./%CD%`","categories":["Libraries & packages"],"product":"launch-editor","vendor":"vitejs","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"launch-editor"},"range":"<= 2.14.1"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"range":">= 8.3.0, <= 8.3.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"range":">= 8.2.0, <= 8.2.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"range":">= 8.0.0, <= 8.1.5"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"range":">= 7.0.0, <= 7.3.6"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"range":"<= 6.4.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite-plus"},"range":"<= 1.0.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-112943","source_modified_at":"2026-10-20T15:13:40.862Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"launch-editor","vendor":"vitejs","versions":[{"version":"< 2.14.2","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-112943","source_modified_at":"2026-10-20T15:13:40.862Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"vite","vendor":"vitejs","versions":[{"version":">= 8.3.0, < 8.3.3","status":"affected"},{"version":">= 8.2.0, < 8.2.4","status":"affected"},{"version":">= 8.0.0, < 8.1.6","status":"affected"},{"version":">= 7.0.0, < 7.3.7","status":"affected"},{"version":"< 6.4.4","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-112943","source_modified_at":"2026-10-20T15:13:40.862Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"vite-plus","vendor":"vitejs","versions":[{"version":"< 1.1.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"launch-editor","ecosystem":"npm","purl":"pkg:npm/launch-editor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"8.3.0"},{"fixed":"8.3.3"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"8.2.0"},{"fixed":"8.2.4"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"8.1.6"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.3.7"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.4.4"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite-plus","ecosystem":"npm","purl":"pkg:npm/vite-plus"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"launch-editor"},"version":"2.14.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"version":"8.3.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"version":"8.2.4"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"version":"8.1.6"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"version":"7.3.7"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite"},"version":"6.4.4"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:30:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite-plus"},"version":"1.1.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"launch-editor","ecosystem":"npm","purl":"pkg:npm/launch-editor"},"version":"2.14.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"version":"8.3.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"version":"8.2.4"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"version":"8.1.6"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"version":"7.3.7"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite","ecosystem":"npm","purl":"pkg:npm/vite"},"version":"6.4.4"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","source_modified_at":"2026-10-20T18:45:09.467993691Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"vite-plus","ecosystem":"npm","purl":"pkg:npm/vite-plus"},"version":"1.1.0"}],"cvss":6.3,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00414,"percentile":0.34665,"score_date":"2026-10-23"},"published_at":"2026-10-20T14:53:41.777Z","modified_at":"2026-10-20T18:45:09.467993691Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T18:30:25Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-112943","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-20T15:13:40.862Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-698v-4r3x-3vcv","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-20T18:45:09.467993691Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-112943","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/vitejs/launch-editor/security/advisories/GHSA-698v-4r3x-3vcv","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112943","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/vitejs/launch-editor/pull/155","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/vitejs/launch-editor/commit/3c2f9bf2ff8fe63d056a8f9cc52d825b66ca79fc","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/vitejs/launch-editor/releases/tag/v2.14.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-698v-4r3x-3vcv","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-20T15:13:29.374778Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-20T18:45:09.467993691Z","content_hash":"3d90d991826abe17797963b4254136bd6d3d8b3b223355fd828596e49246d92f"}}
