CVE-2026-112944

launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors

Published Oct 20, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The launch-editor library forwards editor filenames to the selected editor without enforcing them as positional arguments. When an attacker controls the creation of a file whose name starts with "+" or "-", the filename is interpreted as a command‐line flag by editors such as Vim, gVim, MacVim, Emacs, Emacsclient, and Notepad++ when a plugin permits unsafe operations. This misinterpretation can result in unintended file overwrites or arbitrary command execution within the context of the editor. The vulnerability is rated with a CVSS score of 6.3, indicating moderate severity.

Affected Systems

The flaw affects the ViteJS launch-editor component, as well as the vite and vite-plus packages that use it, for all releases prior to version 2.14.2. The issue was addressed in launch‑editor release 2.14.2, which removes the unvalidated path forwarding logic.

Risk and Exploitability

The CVSS score of 6.3 signals that the flaw is meaningful but not critical; the EPSS score is unavailable, so the expected exploitation likelihood is unknown. Since the vulnerability depends on an attacker’s ability to create a filesystem entry beginning with "+" or "-" in a process’s working directory, it is generally a local privilege escalation or development‑environment compromise scenario rather than a remote network exploit. The exception is that any editor capable of interpreting the forged flag can execute arbitrary commands, so a compromised editor can lead to full system compromise for the running user.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update launch-editor, vite, and vite-plus to version 2.14.2 or later to apply the security fix.
  • If upgrading is not immediately possible, validate or sanitize any file names passed to launch-editor so that names beginning with "+" or "-" are either rejected or escaped before forwarding to the editor command line.
  • Reconfigure or disable editor plugins that allow unsafe operations and ensure that editors are invoked only with parameters originating from trusted sources.

Generated by OpenCVE AI on October 20, 2026 at 17:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r825-w8mm-5pxw launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Vitejs
Vitejs launch-editor
Vitejs vite
Vitejs vite-plus
Vendors & Products Vitejs
Vitejs launch-editor
Vitejs vite
Vitejs vite-plus
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
Weaknesses CWE-88
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 3:23 PM
Reserved
Oct 19, 2026, 9:30 PM
Status
Awaiting Analysis
Published
Oct 20, 2026, 3:17 PM
Modified
Oct 20, 2026, 7:55 PM
Severity
Moderate
Public date
Oct 20, 2026, 2:57 PM