{"schema":"threatline.record/2","record":{"id":"CVE-2026-112942","aliases":["GHSA-587h-7wmj-h5pm"],"summary":"launch-editor: `fs.existsSync()` existence check can be bypassed on Windows","details":"### Summary\n\n`launch-editor` checked `fs.existsSync(fileName)` before passing a supplied path to an editor command. On Windows, an attacker can bypass this check with a crafted path ending in `\\\\..:line:column`. This removes the requirement that the attacker be able to place a file with a malicious filename.\n\nCombined with the `%` escaping issue described in [GHSA-698v-4r3x-3vcv](https://github.com/vitejs/launch-editor/security/advisories/GHSA-698v-4r3x-3vcv), this bypass can lead to OS command injection when an attacker controls the file argument.\n\n### Impact\n\nOnly apps that runs on Windows is affected.\n\n### Details\n\nThe earlier advisory assumed that `fs.existsSync()` required an attacker-controlled filename to exist. This advisory covers a bypass of that requirement.\n\nA crafted value ending in `\\\\..:1:1` is interpreted differently by `launch-editor-middleware`, `launch-editor`, and Windows:\n\n1. `launch-editor-middleware` calls `path.resolve()` while the final path component is `..:1:1`, so it is not treated as a parent-directory component.\n2. `launch-editor` treats `:1:1` as a line-and-column suffix and removes it, leaving a path ending in `\\\\..`.\n3. On Windows, `fs.existsSync()` accepts the resulting path as the existing parent directory even though the attacker-controlled preceding component does not exist.\n4. Because the existence check passes, the crafted filename reaches the Windows shell command.","categories":["Libraries & packages"],"product":"launch-editor","vendor":"vitejs","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-112942","source_modified_at":"2026-10-21T15:55:05.963Z","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-112942","source_modified_at":"2026-10-21T15:55:05.963Z","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-112942","source_modified_at":"2026-10-21T15:55:05.963Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"launch-editor","purl":"pkg:npm/launch-editor"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.14.2"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"ranges":[{"events":[{"introduced":"8.3.0"},{"fixed":"8.3.3"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"ranges":[{"events":[{"introduced":"8.2.0"},{"fixed":"8.2.4"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"ranges":[{"events":[{"introduced":"8.0.0"},{"fixed":"8.1.6"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"ranges":[{"events":[{"introduced":"7.0.0"},{"fixed":"7.3.7"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"6.4.4"}],"type":"SEMVER"}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite-plus","purl":"pkg:npm/vite-plus"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"1.1.0"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T19:48:26Z","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-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"launch-editor","purl":"pkg:npm/launch-editor"},"version":"2.14.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"version":"8.3.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"version":"8.2.4"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"version":"8.1.6"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"version":"7.3.7"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite"},"version":"6.4.4"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","source_modified_at":"2026-10-20T20:00:04.608979840Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"vite-plus","purl":"pkg:npm/vite-plus"},"version":"1.1.0"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.01329,"percentile":0.70825,"score_date":"2026-10-23"},"published_at":"2026-10-20T14:48:06.676Z","modified_at":"2026-10-21T15:55:05.963Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-587h-7wmj-h5pm","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T19:48:26Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-112942","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T15:55:05.963Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-587h-7wmj-h5pm","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T20:00:04.608979840Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-112942","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-587h-7wmj-h5pm","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112942","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679","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-587h-7wmj-h5pm","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total","assessed_at":"2026-10-21T14:39:45.288402Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-21T15:55:05.963Z","content_hash":"7160dd48c941c3b64aa742a0ec682c876389bcdaa9350f8fe54daf63e1c46c57"}}
