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.
Metrics
Affected Vendors & Products
References
History
Fri, 05 Jun 2026 19:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Fri, 05 Jun 2026 18:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Markdown Preview Enhanced Arbitrary Code Execution via WaveDrom eval() | |
| First Time appeared |
Markdown Preview Enhanced Project
Markdown Preview Enhanced Project markdown Preview Enhanced |
|
| Weaknesses | CWE-95 | |
| CPEs | cpe:2.3:a:markdown_preview_enhanced_project:markdown_preview_enhanced:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Markdown Preview Enhanced Project
Markdown Preview Enhanced Project markdown Preview Enhanced |
|
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-06-05T19:03:27.311Z
Reserved: 2026-06-05T16:54:32.159Z
Link: CVE-2026-50733
Updated: 2026-06-05T19:03:10.502Z
Status : Deferred
Published: 2026-06-05T18:17:34.050
Modified: 2026-06-05T20:17:35.423
Link: CVE-2026-50733
No data.
OpenCVE Enrichment
Updated: 2026-06-05T19:45:03Z