Skip to main content

CVE-2026-112942 — Vulnerability in launch-editor — CVE Details

HIGH

launch-editor: `fs.existsSync()` existence check can be bypassed on Windows

Published October 20, 2026Updated October 20, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (2.56%). Schedule for your next planned update.

Does your project use an affected launch-editor version?

Paste your package-lock.json to check it for CVE-2026-112942 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

Summary

launch-editor checked fs.existsSync(fileName) before passing a supplied path to an editor command. On Windows, an attacker can bypass this check with a crafted path ending in \\..:line:column. This removes the requirement that the attacker be able to place a file with a malicious filename.

Combined with the % escaping issue described in GHSA-698v-4r3x-3vcv, this bypass can lead to OS command injection when an attacker controls the file argument.

Impact

Only apps that runs on Windows is affected.

Details

The earlier advisory assumed that fs.existsSync() required an attacker-controlled filename to exist. This advisory covers a bypass of that requirement.

A crafted value ending in \\..:1:1 is interpreted differently by launch-editor-middleware, launch-editor, and Windows:

  1. launch-editor-middleware calls path.resolve() while the final path component is ..:1:1, so it is not treated as a parent-directory component.
  2. launch-editor treats :1:1 as a line-and-column suffix and removes it, leaving a path ending in \\...
  3. On Windows, fs.existsSync() accepts the resulting path as the existing parent directory even though the attacker-controlled preceding component does not exist.
  4. Because the existence check passes, the crafted filename reaches the Windows shell command.

Advisory Timeline

  • First published October 20, 2026 (37 days ago).
  • Last revised October 20, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update launch-editor to 2.14.2 or later
npm install launch-editor@2.14.2
npm
Update vite to 6.4.4 or later
npm install vite@6.4.4
npm
Update vite to 8.1.6 or later
npm install vite@8.1.6
npm
Update vite to 8.3.3 or later
npm install vite@8.3.3
npm
Update vite-plus to 1.1.0 or later
npm install vite-plus@1.1.0
npm
Update vite to 8.2.4 or later
npm install vite@8.2.4
npm
Update vite to 7.3.7 or later
npm install vite@7.3.7

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (7)

Affects 1 ecosystem: npm (3).

PackageFixed In
launch-editor npm · Affected: All versions2.14.2
vite npm · Affected: All versions6.4.4
vite npm · Affected: All versions8.1.6
vite npm · Affected: All versions8.3.3
vite-plus npm · Affected: All versions1.1.0
vite npm · Affected: All versions8.2.4
vite npm · Affected: All versions7.3.7

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
A
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Frequently Asked Questions

What is CVE-2026-112942?
launch-editor: `fs.existsSync()` existence check can be bypassed on Windows. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
How do I check if my project is affected by CVE-2026-112942?
CVE-2026-112942 affects launch-editor, vite and vite-plus. It has a 2.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-112942 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
2.56%
EPSS percentile: 85.8

This places it in the top quartile of EPSS-scored vulnerabilities — 85.8% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-587h-7wmj-h5pm

Related CVEs

  • CVE-2026-53633
    CRITICAL

    Vitest Browser: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE

  • CVE-2026-41211
    HIGH

    Path traversal in vite-plus/binding downloadPackageManager() writes outside VP_HOME

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2026-53632
    MEDIUM

    launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json