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

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 6% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-14T19:13:58.946Z
- Modified: 2026-10-16T16:00:33.533Z
- Weaknesses: CWE-749
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- shd101wyy vscode-markdown-preview-enhanced: < 0.8.30

## References

- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-83c6-hcjv-pvmg> (exploit)
- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2323>
- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/8bc848b6cbb42b9f35a0f95f7c3bf29b8302970e>
- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.30>

## Sources

- CVE List: [CVE-2026-54702](https://www.cve.org/CVERecord?id=CVE-2026-54702), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-54702](https://nvd.nist.gov/vuln/detail/CVE-2026-54702), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-54702 · Whole record: https://cve.day/CVE-2026-54702.json · Rebuilt by cve.day 2026-11-25T22:59:44.795Z
