Vulnerability · Published Oct 20, 2026 · Assigned by GitHub_M
CVE-2026-112943launch-editor: escapeCmdArgs() omits % escaping on Windows
Medium 6.3
In plain English
A medium-severity OS command injection in launch-editor from vitejs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, 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. This vulnerability is fixed in 2.14.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | launch-editor | 2.14.2 | GHSA-698v-4r3x-3vcv |
| npm | vite | 8.3.3 | GHSA-698v-4r3x-3vcv |
| npm | vite | 8.2.4 | GHSA-698v-4r3x-3vcv |
| npm | vite | 8.1.6 | GHSA-698v-4r3x-3vcv |
| npm | vite | 7.3.7 | GHSA-698v-4r3x-3vcv |
| npm | vite | 6.4.4 | GHSA-698v-4r3x-3vcv |
| npm | vite-plus | 1.1.0 | GHSA-698v-4r3x-3vcv |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/vitejs/launch-editor/security/advisories/GHSA-698v-4r3x-3vcv x_refsource_CONFIRM
- https://github.com/vitejs/launch-editor/pull/155 x_refsource_MISC
- https://github.com/vitejs/launch-editor/commit/3c2f9bf2ff8fe63d056a8f9cc52d825b66ca79fc x_refsource_MISC
- https://github.com/vitejs/launch-editor/releases/tag/v2.14.2 x_refsource_MISC