CVE-2026-112943

launch-editor: escapeCmdArgs() omits % escaping on Windows

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

Analysis

AI-generated

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

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
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

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

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 3:13 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
Important
Public date
Oct 20, 2026, 2:53 PM