216.73.216.226

CVE-2026-50733

· Published 05/06/2026 18:17 · Modified 05/06/2026 20:17

Labels: CVE-2026-50733 2026-06-05CVE-2026-50733CWE-95[email protected]

Essential information

Published
05/06/2026 18:17
Modified
05/06/2026 20:17
Author
Creator
CVSS
8.6 HIGH (v3) 8.6 HIGH (v4.0)
CISA KEV
No
CWE
CVSS vector

CVSS metrics

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.

NVD status

Status
Deferred — CVE has been recently published to the CVE List and has been received by the NVD.
Source
[email protected]
NVD
View on NVD

Affected products (CPE)

ProductCPE
markdown preview enhanced / markdown preview enhanced cpe:2.3:a:markdown_preview_enhanced:markdown_preview_enhanced:0.8.28:*:*:*:*:*:*:*
wavedrom / wavedrom cpe:2.3:a:wavedrom:wavedrom:*:*:*:*:*:*:*:*

References