CVE-2026-54702
published high CVSS 4.0 · 7.3Markdown Preview Enhanced: Blind Command Dispatch via Unvalidated Webview Message Handler
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| shd101wyy | — | vscode-markdown-preview-enhanced< 0.8.30 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| shd101wyy | vscode-markdown-preview-enhanced | < 0.8.30 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-749 CWE-749: Exposed Dangerous Method or Function
References
4- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/8bc848b6cbb42b9f35a0f95f7c3bf29b8302970e
- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2323
- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.30
- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-83c6-hcjv-pvmg
Provider assertions
2GitHub_M · cna
Markdown Preview Enhanced: Blind Command Dispatch via Unvalidated Webview Message Handler
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ad2c5fd3919b4122d179bd060c5c175e995620755966dab47271497f3052bf08
- Ingested
- 15 Oct 2026, 17:54:57 UTC
- Source record
- Official CVE record