# CVE-2026-50733: Markdown Preview Enhanced Arbitrary Code Execution via WaveDrom eval()

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-05T17:49:53.631Z
- Modified: 2026-11-08T14:05:02.848Z
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- shd101wyy Markdown Preview Enhanced: before 0.8.28

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315> (exploit, issue-tracking)
- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28> (release-notes)
- <https://www.vulncheck.com/advisories/markdown-preview-enhanced-arbitrary-code-execution-via-wavedrom-eval> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-50733](https://www.cve.org/CVERecord?id=CVE-2026-50733), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-50733](https://nvd.nist.gov/vuln/detail/CVE-2026-50733), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-50733 · Whole record: https://cve.day/CVE-2026-50733.json · Rebuilt by cve.day 2026-11-25T22:59:23.896Z
