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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-54702— Markdown Preview Enhanced: Blind Command Dispatch via Unvalidated Webview Message Handler

Quick assessment

Affected
shd101wyy vscode-markdown-preview-enhanced
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.

Markdown Preview Enhanced 是 Visual Studio Code 的一个 Markdown 预览扩展。在版本 0.8.30 之前,位于 中的 WebView 消息处理程序接受攻击者可控的命令值(command)和参数(args),在 命名空间下构造命令,并通过 执行该命令,且未进行任何白名单校验或类型验证。已在预览 WebView 中执行的 JavaScript 代码可以利用此桥接机制调用需要特权的扩展命令,包括文件修改、代码块执行、导出工具执行以及打开任意 URL 等操作,并可由攻击者

CVSS 7.3 · High EPSS 0.22% · P11

Affected Version Matrix 1

VendorProduct Version RangeStatus
shd101wyy vscode-markdown-preview-enhanced < 0.8.30 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54702

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
Markdown Preview Enhanced: Blind Command Dispatch via Unvalidated Webview Message Handler
Source: CVE Program / CVE List V5
Vulnerability Description
Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.30, the webview message handler in src/preview-provider.ts accepts an attacker-controlled command value and attacker-controlled args, constructs a command in the _crossnote namespace, and invokes vscode.commands.executeCommand without an allowlist or type validation. JavaScript already executing in the preview webview can use this bridge to invoke privileged extension commands, including file modification, code-chunk execution, export-tool execution, and arbitrary URL opening, with attacker-selected arguments. Exploitation requires a separate webview JavaScript execution path, such as the independently tracked .crossnote/head.html injection, but no further authorization check protects the extension-host command boundary. This issue is fixed in version 0.8.30.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/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
shd101wyy vscode-markdown-preview-enhanced < 0.8.30 -

II. Public POCs for CVE-2026-54702

# 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-54702

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

Patches & Fixes for CVE-2026-54702 (2)

Other References for CVE-2026-54702 (2)

Same Patch Batch · shd101wyy · 2026-10-14 · 5 CVEs total

CVE-2026-54525 8.8 HIGH Markdown Preview Enhanced: One Click RCE via Markdown Link Command Injection on Windows
CVE-2026-54566 8.5 HIGH Markdown Preview Enhanced: Remote Code Execution via VM Sandbox Escape in `.crossnote/conf
CVE-2026-54701 6.9 MEDIUM Markdown Preview Enhanced: Stored XSS via Unsanitized `.crossnote/head.html` Injection in
CVE-2026-54703 5.8 MEDIUM Markdown Preview Enhanced: Arbitrary File Write via updateMarkdown Command Without Path Va

IV. Related Vulnerabilities

V. Comments for CVE-2026-54702

No comments yet


Leave a comment