Vulnerability · Published Jun 1, 2026 · Assigned by GitHub_M
CVE-2024-52011launch-editor vulnerable to command injection via the crafted request on Windows
High 8.3
In plain English
A high-severity 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.5% (higher than 44% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. 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 version 2.9.0, due to the insufficient sanitization of the `file` argument in the `launchEditor`, an attacker can execute arbitrary commands on Windows by supplying a filename that contains special characters. This issue has been fixed in the `launch-editor` version 2.9.0, corresponding to vite version 5.4.9.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | launch-editor | 2.9.0 | GHSA-c27g-q93r-2cwf |
| npm | vite | 5.4.9 | GHSA-c27g-q93r-2cwf |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| vitejs | launch-editor | < 2.9.0 |
| vitejs | vite | < 5.4.9 |
Weakness: CWE-77, CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
References
- https://github.com/vitejs/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf x_refsource_CONFIRM
- https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2024-52011 vdb-entry, x_refsource_REDHAT
- RHBZ#2483853 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-52011.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:34342 vendor-advisory, x_refsource_REDHAT