Live › vulnerability › CVE-2026-112944
Go to dashboardlaunch-editor passes file paths to editors without stripping leading + or - so a path like a flag is run as an editor command, and in Vim that means an Ex command is executed. An attacker who can create a file or directory starting with + or - in the project working directory can get the editor to run arbitrary commands or overwrite files when a developer opens it.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-23 19:11 UTC, 3h before NVD. All times on this page are UTC.
| Product | Ecosystem | Affected | Fixed in |
|---|---|---|---|
| launch-editor | npm | <= 2.14.1 | 2.14.2 |
| vite | npm | >= 8.3.0, <= 8.3.2 | 8.3.3 |
| vite | npm | >= 8.2.0, <= 8.2.3 | 8.2.4 |
| vite | npm | >= 8.0.0, <= 8.1.5 | 8.1.6 |
| vite | npm | >= 7.0.0, <= 7.3.6 | 7.3.7 |
| vite | npm | <= 6.4.3 | 6.4.4 |
| vite-plus | npm | <= 1.0.0 | 1.1.0 |
npm ls launch-editor and npm ls vite in the project to see the installed versions2.14.2 or later, and upgrade vite to the patched line for your branch (8.3.3, 8.2.4, 8.1.6, 7.3.7 or 6.4.4) or vite-plus to 1.1.0Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
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.
launch-editor usersOnly 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 usersOnly apps that match the following conditions are affected:
+ or - in the working directoryOnly apps that match the following conditions are affected:
+ or - in the working directorylaunchEditor(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.
This page as .md · .json · in your agent: get_signal("CVE-2026-112944")
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.