CVE-2026-112944 launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, when an attacker can create a filesystem entry beginning with plus or minus in the working directory, an affected editor is selected, and the path can remain relative or is converted to a relative WSL path, launchEditor forwards the path without forcing it to be interpreted as a positional filename. Editor option parsing then treats the attacker-controlled filename as a command-line flag, which can cause unintended file overwrite or arbitrary command execution by the selected editor. The affected editors are Vim and gVim, MacVim, Emacs and Emacsclient, and Notepad++ when a plugin exposes dangerous operations; WSL path conversion keeps Vite and newer middleware callers exposed. This issue is fixed in version 2.14.2.
Upgrade path
7 packages: 3 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux grafana(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| npm launch-editor(npm) | < 2.14.2; <= 2.14.1 | 2.14.2 | Fixed |
| npm vite(npm) | < 6.4.4; <= 6.4.3; >= 7.0.0, < 7.3.7; >= 7.0.0, <= 7.3.6 +6 more | 6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3 | Fixed |
| npm vite-plus(npm) | < 1.1.0; <= 1.0.0 | 1.1.0 | Fixed |
| vitejs launch-editor | = < 2.14.2 | No fix listed | Versions listed |
| vitejs vite | = < 6.4.4; = >= 7.0.0, < 7.3.7; = >= 8.0.0, < 8.1.6; = >= 8.2.0, < 8.2.4 +1 more | No fix listed | Versions listed |
| vitejs vite-plus | = < 1.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vitejs launch-editor | = < 2.14.2 | No fix listed |
| vitejs vite | = >= 8.3.0, < 8.3.3 | No fix listed |
| vitejs vite | = >= 8.2.0, < 8.2.4 | No fix listed |
| vitejs vite | = >= 8.0.0, < 8.1.6 | No fix listed |
| vitejs vite | = >= 7.0.0, < 7.3.7 | No fix listed |
| vitejs vite | = < 6.4.4 | No fix listed |
| vitejs vite-plus | = < 1.1.0 | No fix listed |
| npm launch-editor(npm) | <= 2.14.1 | No fix listed |
| npm vite(npm) | >= 8.3.0, <= 8.3.2 | No fix listed |
| npm vite(npm) | >= 8.2.0, <= 8.2.3 | No fix listed |
| npm vite(npm) | >= 8.0.0, <= 8.1.5 | No fix listed |
| npm vite(npm) | >= 7.0.0, <= 7.3.6 | No fix listed |
| npm vite(npm) | <= 6.4.3 | No fix listed |
| npm vite-plus(npm) | <= 1.0.0 | No fix listed |
| npm launch-editor(npm) | < 2.14.2 | 2.14.2 |
| npm vite(npm) | >= 8.3.0, < 8.3.3 | 8.3.3 |
| npm vite(npm) | >= 8.2.0, < 8.2.4 | 8.2.4 |
| npm vite(npm) | >= 8.0.0, < 8.1.6 | 8.1.6 |
| npm vite(npm) | >= 7.0.0, < 7.3.7 | 7.3.7 |
| npm vite(npm) | < 6.4.4 | 6.4.4 |
| npm vite-plus(npm) | < 1.1.0 | 1.1.0 |
| azure linux grafana(Azure Linux:4.0) | All versions | No fix listed |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2556285 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/vitejs/launch-editor/commit/f6e6701bb1f16f2dd242b321374f1b6cca6eb6d4 patch
- https://github.com/vitejs/launch-editor/pull/156 patch
- https://github.com/vitejs/launch-editor/releases/tag/v2.14.2
- https://github.com/vitejs/launch-editor/security/advisories/GHSA-r825-w8mm-5pxw vendor-advisory
- github.com
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- github.com product
- ENISA EUVD EUVD-2026-105045 third-party-advisory