CVE-2026-50733
published high CVSS 4.0 · 8.6Markdown Preview Enhanced Arbitrary Code Execution via WaveDrom eval()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| shd101wyy | — | Markdown Preview Enhanced0 to < 0.8.28 | Affected | Not stated | VulnCheck |
Description
Markdown Preview Enhanced before 0.8.28 parses WaveDrom diagrams by evaluating untrusted markdown content with eval(), allowing arbitrary JavaScript execution. The flaw affects every render path - the live preview (window.eval) and presentation mode plus HTML export (the bundled WaveDrom.ProcessAll()/eva() helpers) - and can also be triggered through a <script type="WaveDrom"> element injected via raw HTML in markdown. When a victim previews or exports a crafted markdown document, an attacker can execute arbitrary code, leading to arbitrary file write. Fixed in 0.8.28 by parsing with JSON5.parse() and sanitizing WaveDrom data scripts to inert strict JSON.
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
- 8.6 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| shd101wyy | Markdown Preview Enhanced | 0 to < 0.8.28 (affected · semver) | VulnCheck · cna |
Weaknesses
1- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
References
3- Issue #2315 https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315
- Markdown Preview Enhanced 0.8.28 Release Notes https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28
- VulnCheck Advisory: Markdown Preview Enhanced Arbitrary Code Execution via WaveDrom eval() https://www.vulncheck.com/advisories/markdown-preview-enhanced-arbitrary-code-execution-via-wavedrom-eval
Provider assertions
2VulnCheck · cna
Markdown Preview Enhanced Arbitrary Code Execution via WaveDrom eval()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 69c7896c023228fce7b32e78486b1657e7293c0a465c4fb927b92c80744ad317
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record