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.
Published: 2026-10-20
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Arbitrary Command Execution
Action: Apply Patch
AI Analysis

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.

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

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

No advisories yet.

History

Tue, 20 Oct 2026 17:15:00 +0000

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

Tue, 20 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Oct 2026 15:15:00 +0000

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'}


Subscriptions

Vitejs Launch-editor Vite Vite-plus
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T15:23:12.248Z

Reserved: 2026-10-19T21:30:47.245Z

Link: CVE-2026-112944

cve-icon Vulnrichment

Updated: 2026-10-20T15:23:00.635Z

cve-icon NVD

Status : Received

Published: 2026-10-20T15:17:17.793

Modified: 2026-10-20T16:17:04.897

Link: CVE-2026-112944

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T17:30:13Z

Weaknesses
  • CWE-88

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