REDHAT-BUG-2483853: High severity npm/launch-editor vulnerability
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to version 2.9.0, 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. This issue has been fixed in the launch-editor version 2.9.0, corresponding to vite version 5.4.9.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
launch-editorto a version that resolves this vulnerability.Fixed in 2.9.0 - Upgrade
Upgrade
viteto a version that resolves this vulnerability.Fixed in 5.4.9
Event History
Frequently Asked Questions
Which deployments are exposed?
The issue affects Windows environments where launch-editor is used and an attacker can supply a filename containing special characters to the launchEditor file argument.
What versions include the fix?
The fix is in launch-editor version 2.9.0. For Vite, the corresponding fixed version is 5.4.9.