{"id":"GHSA-c27g-q93r-2cwf","revision":"9e7fc8500bf04b0485163a47f41ffec9","records":[{"revision":"9e7fc8500bf04b0485163a47f41ffec9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-c27g-q93r-2cwf","aliases":["CVE-2024-52011"],"title":"launch-editor vulnerable to command injection via the crafted request on Windows","description":"### Summary\nDue 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.\n\n### Impact\nIf the following conditions are met, an attacker can execute arbitrary commands on the computer that is using the `launch-editor`:\n\n- An attacker can place a file with the malicious filename\n- An attacker can call the `launchEditor` method with the `file` argument controlled\n- The `launch-editor` package is running on Windows\n\nFor example, some development server using this package satisfy these conditions, as a malicious website might be able to force the downloading of a file and the path of that file is predictable.\n\n### Patch\nThis issue has been fixed in the `launch-editor` version 2.9.0 ([commit](https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e)).","state":0,"publishedAt":"2026-06-03T18:02:48+00:00","modifiedAt":"2026-09-10T03:51:08.3265051+00:00","affected":[{"ecosystem":"npm","name":"launch-editor","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.9.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"vite","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.4.9"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/vitejs/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf","https://github.com/yyx990803/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf","https://nvd.nist.gov/vuln/detail/CVE-2024-52011","https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e","https://github.com/vitejs/launch-editor"],"sourceUrl":"https://github.com/advisories/GHSA-c27g-q93r-2cwf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-c27g-q93r-2cwf","identifiers":["GHSA-c27g-q93r-2cwf","CVE-2024-52011"]},"retained":false,"historicalAffected":[]}],"coverage":[]}