Advisory

GHSA-c27g-q93r-2cwf

Also known as: CVE-2024-52011

Summary

launch-editor vulnerable to command injection via the crafted request on Windows

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-06-03 18:02 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

launch-editor

npm · All systems

Affected

  • introduced 0, fixed 2.9.0 (semver)

Fixed versions

2.9.0

Fix

vite

npm · All systems

Affected

  • introduced 0, fixed 5.4.9 (semver)

Fixed versions

5.4.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences