launch-editor
Affected
- introduced
0, fixed2.14.2(semver)
Fixed versions
2.14.2
Fix
- Fixed version
2.14.2npm install [email protected]
Advisory
Also known as: CVE-2026-112944
launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
Summary
launch-editor forwarded file paths directly to editors without sanitization. If a path resembles a CLI flag, editors like Vim may interpret it as a command, potentially causing unintended file overwrites or command execution.
Impact
Direct launch-editor users
Only apps that match all of the following conditions are affected:
+ or - in the working directorylaunchEditor can start with + or - or the user is using WSLlaunch-editor-middleware users
Only apps that match the following conditions are affected:
+ or - in the working directoryVite users
Only apps that match the following conditions are affected:
+ or - in the working directoryDetails
launchEditor(file) function passes the file name as-is to the editor if the file with that file name exists. If the file name starts with - (also + for Vim), the editor treats them as flags rather than positional arguments. For example, Vim treats arguments starting with + as an Ex command. As a result, an existing relative directory such as:
+call writefile(["SAFE_MARKER"],"LAUNCH_EDITOR_MARKER")|qa!
is not treated as a filename when passed to Vim. Vim executes the embedded Ex command.
The following editor has a potentially destructive operation exposed to the CLI arguments:
launch-editor-middleware v2.2.0+ converts the passed file path to an absolute path so those are not affected as long as the user is not using WSL. For WSL, launch-editor converts the paths to relative paths internally, so those are still affected.
Vite 2.0.0+ uses launch-editor-middleware v2.2.0+ so the WSL users are only affected.
Medium Basis: The source's own band: MODERATE
0, fixed 2.14.2 (semver)2.14.2
2.14.2npm install [email protected]8.3.0, fixed 8.3.3 (semver)8.3.3
8.3.3npm install [email protected]8.2.0, fixed 8.2.4 (semver)8.2.4
8.2.4npm install [email protected]8.0.0, fixed 8.1.6 (semver)8.1.6
8.1.6npm install [email protected]7.0.0, fixed 7.3.7 (semver)7.3.7
7.3.7npm install [email protected]0, fixed 6.4.4 (semver)6.4.4
6.4.4npm install [email protected]0, fixed 1.1.0 (semver)1.1.0
1.1.0npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0