# CVE-2026-11422: Markdown Preview Enhanced 0.8.x Code Injection via WaveDrom Rendering

- Severity: High 8.4 (CVSS:4.0, scored by VulnCheck) `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`
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-05T20:16:50.802Z
- Modified: 2026-07-23T07:10:00.113Z
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- shd101wyy Markdown Preview Enhanced: before 0.8.27
- shd101wyy crossnote: before 0.9.28

## Every score

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

## References

- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315> (exploit, issue-tracking)
- <https://github.com/shd101wyy/crossnote/commit/5588ca2121c3da43fe331575dc5cf4ef347b91ee> (patch)
- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/dcd80281c986293b93d9f1af34ced64dcb230c77> (patch)
- <https://www.vulncheck.com/advisories/markdown-preview-enhanced-x-code-injection-via-wavedrom-rendering> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-11422](https://www.cve.org/CVERecord?id=CVE-2026-11422), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-11422](https://nvd.nist.gov/vuln/detail/CVE-2026-11422), Public domain, modified 2026-07-23

---

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