CVE-2026-11422
JSON

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 packageVersionsReported by
shd101wyy Markdown Preview Enhancedbefore 0.8.27CVE List
shd101wyy crossnotebefore 0.9.28CVE List

All scores

VulnCheck7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
VulnCheck8.4high CVSS:4.0CVSS: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

CWE-95

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

SourceRecordLicence
CVE ListCVE-2026-11422 changed 2026-07-14CVE Terms of Use
NVDCVE-2026-11422 changed 2026-07-23Public domain