Description
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, launch-editor did not escape % on Windows when passing an argument to cmd. When an environment variable contained a malicious value, it was possible that that content to be executed. This vulnerability is fixed in 2.14.2.
Published: 2026-10-20
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The bug resides in launch‑editor’s Windows command–argument handling, where percent signs (%) were not escaped before being forwarded to cmd.exe. An attacker who can influence an environment variable read by the Node.js process can inject a payload that becomes part of the command string and is executed by cmd, giving arbitrary code execution. This is a classic command injection flaw (CWE‑78).

Affected Systems

The issue is present in the Vite.js ecosystem, specifically launch‑editor package versions earlier than 2.14.2 and any projects that depend on it, such as Vite and Vite‑plus. Any installation that imports launch‑editor before the 2.14.2 release is vulnerable.

Risk and Exploitability

The CVSS score of 6.3 indicates a medium severity. EPSS data is currently unavailable and the vulnerability is not listed in CISA KEV, implying no large‑scale exploitation yet. The exploit requires control over an environment variable that leaks into the Node.js process, a condition that can occur if user input feeds into env vars or when running untrusted code. Once achieved, the attacker can run arbitrary commands on the host system, creating a high‑impact threat if the process runs with privileged rights.

Generated by OpenCVE AI on October 20, 2026 at 18:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade launch‑editor to version 2.14.2 or later, ensuring that Vite and Viteplus dependencies are also updated to a release that uses the patched library.
  • If the project cannot be immediately updated, sanitise or remove any environment variables that may contain percent characters or other special characters before they reach the Node.js process.
  • Consider restricting the Node.js process to run with the least privileges and disabling cmd.exe usage where possible to reduce the potential impact of a successful injection.

Generated by OpenCVE AI on October 20, 2026 at 18:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-698v-4r3x-3vcv launch-editor: escapeCmdArgs() omits % escaping on Windows
History

Tue, 20 Oct 2026 18:45: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:00: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, launch-editor did not escape % on Windows when passing an argument to cmd. When an environment variable contained a malicious value, it was possible that that content to be executed. This vulnerability is fixed in 2.14.2.
Title launch-editor: escapeCmdArgs() omits % escaping on Windows
Weaknesses CWE-78
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:13:40.862Z

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

Link: CVE-2026-112943

cve-icon Vulnrichment

Updated: 2026-10-20T15:13:34.619Z

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-112943

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T18:30:16Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')