CVE-2026-54702
Last modified
CVE-2026-54702 is a high-severity vulnerability rated 7.3/10 on the CVSS scale. 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. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| shd101wyy | vscode-markdown-preview-enhanced | < 0.8.30 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-54702?
How severe is CVE-2026-54702?
How do I fix CVE-2026-54702?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-54697ConnectBot SSH Client Library is written in Kotlin with Kait…6.7
- CVE-2026-54698Hasura is an open-source product that provides users GraphQL…5.9
- CVE-2026-54699Warp is an agentic development environment. From 0.2024.03.1…7.7
- CVE-2026-5470A security vulnerability has been detected in mixelpixx Goog…6.3
- CVE-2026-54700ConnectBot SSH Client Library is written in Kotlin with Kait…6.9
- CVE-2026-54701Markdown Preview Enhanced is a Markdown preview extension fo…6.9
- CVE-2026-54703Markdown Preview Enhanced is a Markdown preview extension fo…5.8
- CVE-2026-54704OpenTelemetry Java Instrumentation provides OpenTelemetry au…6.5
- CVE-2026-54705MathLive provides web components for math display and input.…6.3
- CVE-2026-54706OnionShare is an open source tool that lets you securely and…4.8
- CVE-2026-54707OnionShare is an open source tool that lets you securely and…5.4
- CVE-2026-54708FreePBX is an open source IP PBX. Prior to versions 16.0.72 …8.8
Are you affected by CVE-2026-54702?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
