GitHub Advisoryadvisory · npm

GHSA-c27g-q93r-2cwf launch-editor vulnerable to command injection via the crafted request on Windows

HIGH Published 2026-06-03 Modified 2026-06-03 Official page ↗
Aliases
CVE-2024-52011
Ecosystem
npm
Packages
launch-editor, vite
Severity
High
CVSS 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
Weaknesses
CWE-77
Reviewed
2026-06-03

Affected packages

• npm launch-editor: < 2.9.0 → fixed in 2.9.0 • npm vite: < 5.4.9 → fixed in 5.4.9

Description

Summary 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. Impact If the following conditions are met, an attacker can execute arbitrary commands on the computer that is using the `launch-editor`: • An attacker can place a file with the malicious filename • An attacker can call the `launchEditor` method with the `file` argument controlled • The `launch-editor` package is running on Windows For 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. Patch This issue has been fixed in the `launch-editor` version 2.9.0 (commit).

Related

Alias · CVE (1)

  • CVE-2024-52011 launch-editor allows users to open files with line numbers in editor from Node.js. vulnerability

Weakness · CWE (1)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References