Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 05, 2026
Arbitrary JavaScript execution in the Markdown Preview Enhanced VS Code extension (0.8.x, bundling crossnote 0.9.28) is triggered when a victim opens or previews a crafted Markdown document containing a malicious wavedrom fenced code block. The WaveDrom rendering pipeline passes block contents directly to window.eval() inside the VS Code webview, letting an attacker abuse the extension's message-passing channel to write arbitrary files to the victim's local filesystem. Vendor patches were released on 2026-06-05; no public exploit was identified at time of analysis and the CVE is not listed in CISA KEV.
Earlier versions of this analysis (2)
Arbitrary JavaScript execution in the Markdown Preview Enhanced VS Code extension (0.8.x, crossnote engine 0.9.28) is triggered when a user opens a crafted Markdown document containing a malicious wavedrom fenced code block. The unsanitized content is passed to window.eval() inside the VS Code webview, and the resulting code can pivot through the extension's message-passing channel to write arbitrary files to the local filesystem. No public exploit identified at time of analysis, but vendor commits and a VulnCheck advisory confirm the fix.
Arbitrary code execution in the Markdown Preview Enhanced VS Code extension (0.8.x, bundling crossnote 0.9.28) lets attackers run JavaScript in the preview webview by tricking a user into opening a crafted Markdown document containing a malicious wavedrom fenced code block. The injected script abuses the extension's webview message-passing channel to perform arbitrary file writes on the local filesystem; no public exploit is identified at time of analysis, but a vendor patch and detailed root-cause analysis from VulnCheck are available.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Know when Markdown Preview Enhanced gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
Markdown Preview Enhanced 0.8.x with crossnote engine 0.9.28 contains a code injection vulnerability in the WaveDrom rendering pipeline that allows attackers to execute arbitrary JavaScript by embedding malicious content in a wavedrom fenced code block within a crafted Markdown document. Attackers can exploit the unsanitized passing of wavedrom block content to window.eval() in the VS Code webview context to abuse the extension's message passing and invoke arbitrary file writes on the local filesystem.
Executive ViewAI
Markdown Preview Enhanced VS Code extension (version 0.8.x) contains a vulnerability allowing arbitrary file operations on developer workstations through malicious Markdown documents. This poses significant supply chain and data exposure risks, as attackers could inject code, steal credentials, or compromise source code repositories if development teams using this extension are targeted.
Within 24 hours: Identify all VS Code installations using Markdown Preview Enhanced (version 0.8.x) across the organization. Within 7 days: Update to the latest patched release through the VS Code marketplace (patch issued 2026-06-05). Within 30 days: Audit development systems for unauthorized file modifications and verify patch deployment across all affected installations.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Markdown Preview Enhanced
View allAn issue in Markdown Preview Enhanced v0.6.5 and v0.19.6 for VSCode and Atom allows attackers to execute arbitrary comma
Markdown Preview Enhanced v0.6.5 and v0.19.6 for VSCode and Atom was discovered to contain a command injection vulnerabi
An issue in Visual Studio Code Extensions Markdown Preview Enhanced v0.8.18 allows attackers to execute arbitrary code v
Arbitrary code execution in Markdown Preview Enhanced (shd101wyy) before 0.8.28 lets a crafted markdown document run att
Remote code execution in the Markdown Preview Enhanced extension (versions before 0.8.28) allows attackers to run arbitr
Remote code execution in Markdown Preview Enhanced before 0.8.28 on Windows allows attackers to inject OS commands throu
EUVD-2026-34916
GHSA-m48c-hxqg-4j76
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB