| Package | Affected versions | Patched versions |
|---|---|---|
| launch-editor | < 2.9.0 | 2.9.0 |
| vite | < 5.4.9 | 5.4.9 |
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.
If the following conditions are met, an attacker can execute arbitrary commands on the computer that is using the launch-editor:
launchEditor method with the file argument controlledlaunch-editor package is running on WindowsFor 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.
This issue has been fixed in the launch-editor version 2.9.0 (commit).
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free