Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
vitejs launch-editor
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

允许用户从 Node.js 中通过编辑器打开带行号的文件。在 2.14.2 版本之前, 在处理由攻击者控制的 Windows 文件参数时存在缺陷:当该文件参数以“父目录组件 + 行号与列号后缀”结尾时,路径会在后缀仍存在的情况下被解析;随后 在执行 检查前会移除该后缀,导致 仅对已存在的父目录进行验证。这使得攻击者可以绕过文件名存在性检查,而无需实际创建恶意文件名。若结合此前单独描述的 Windows 百分号扩展漏洞,该绕过可导致操作系统命令注入。此问题已在 2.14.2 版本中修复。

CVSS 7.5 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-112942

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
Source: CVE Program / CVE List V5
Vulnerability Description
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, launch-editor-middleware processes an attacker-controlled Windows file argument where the file argument ends in a parent-directory component plus a line-and-column suffix: the path is resolved while the suffix is still present, and launch-editor removes the suffix before its existsSync check, leaving the existing parent directory for existsSync and allowing the attacker-controlled file argument to pass filename existence validation without requiring the malicious filename to exist. The bypass can lead to OS command injection when combined with the separately described Windows percent-expansion flaw. This issue is fixed in version 2.14.2.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
vitejs launch-editor < 2.14.2 -
vitejs vite >= 8.3.0, < 8.3.3 -
vitejs vite-plus < 1.1.0 -

II. Public POCs for CVE-2026-112942

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-112942

请登录查看更多情报信息。

Other References for CVE-2026-112942 (3)

Same Patch Batch · vitejs · 2026-10-20 · 6 CVEs total

CVE-2026-112944 6.3 MEDIUM launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for s
CVE-2026-112943 6.3 MEDIUM launch-editor: escapeCmdArgs() omits % escaping on Windows
CVE-2026-112947 6.3 MEDIUM Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-inst
CVE-2026-112946 6.3 MEDIUM Vite: Files outside `server.fs.allow` could be served when project paths match system path
CVE-2026-112945 2.1 LOW Vite: Cross origin script execution through Vite custom middleware

IV. Related Vulnerabilities

V. Comments for CVE-2026-112942

No comments yet


Leave a comment