# CVE-2026-112944: launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-10-20T14:57:38.728Z
- Modified: 2026-10-20T20:00:04.608Z
- Also known as: GHSA-r825-w8mm-5pxw
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vitejs launch-editor: < 2.14.2
- vitejs vite: >= 8.3.0, < 8.3.3; >= 8.2.0, < 8.2.4; >= 8.0.0, < 8.1.6; >= 7.0.0, < 7.3.7; < 6.4.4
- vitejs vite-plus: < 1.1.0
- launch-editor (npm): before 2.14.2
- vite (npm): from 8.3.0 before 8.3.3; from 8.2.0 before 8.2.4; from 8.0.0 before 8.1.6; from 7.0.0 before 7.3.7; before 6.4.4
- vite-plus (npm): before 1.1.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/vitejs/launch-editor/security/advisories/GHSA-r825-w8mm-5pxw> (web)
- <https://github.com/vitejs/launch-editor/pull/156> (web)
- <https://github.com/vitejs/launch-editor/commit/f6e6701bb1f16f2dd242b321374f1b6cca6eb6d4> (web)
- <https://github.com/vitejs/launch-editor/releases/tag/v2.14.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112944> (advisory)
- <https://github.com/vitejs/launch-editor> (package)

## Sources

- CVE List: [CVE-2026-112944](https://www.cve.org/CVERecord?id=CVE-2026-112944), CVE Terms of Use, modified 2026-10-20
- GitHub Advisory Database: [GHSA-r825-w8mm-5pxw](https://github.com/advisories/GHSA-r825-w8mm-5pxw), CC-BY-4.0, modified 2026-10-20
- NVD: [CVE-2026-112944](https://nvd.nist.gov/vuln/detail/CVE-2026-112944), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-112944 · Whole record: https://cve.day/CVE-2026-112944.json · Rebuilt by cve.day 2026-11-25T22:59:46.051Z
