NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

highCVSS 4.0 7.5GHSA-c27g-q93r-2cwf

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…

Published Jun 3, 2026

Affected packages

launch-editor

Ecosystem
npm
Affected
<= 2.8.2
Fixed in
2.9.0
Check
npm ls launch-editor

vite

Ecosystem
npm
Affected
<= 5.4.8
Fixed in
5.4.9
Check
npm ls vite

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to Ry0taK.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries