8.4high
Markdown Preview Enhanced 0.8.x Code Injection via WaveDrom Rendering
- Severity
- 8.4high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| shd101wyy Markdown Preview Enhanced | before 0.8.27 | CVE List |
| shd101wyy crossnote | before 0.9.28 | CVE List |
All scores
| VulnCheck | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| VulnCheck | 8.4high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Markdown Preview Enhanced 0.8.x con crossnote engine 0.9.28 contiene una vulnerabilidad de inyección de código en la tubería de renderizado de WaveDrom que permite a los atacantes ejecutar JavaScript arbitrario incrustando contenido malicioso en un bloque de código cercado de wavedrom dentro de un documento Markdown manipulado. Los atacantes pueden exploit la transferencia no saneada del contenido del bloque wavedrom a window.eval() en el contexto de la webview de VS Code para abusar del paso de mensajes de la extensión e invocar escrituras de archivos arbitrarias en el sistema de archivos local.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-11422 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-11422 changed 2026-07-23 | Public domain |