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.
History

Fri, 05 Jun 2026 21:00:00 +0000

Type Values Removed Values Added
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.
Title Markdown Preview Enhanced 0.8.x Code Injection via WaveDrom Rendering
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.4, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-05T20:16:50.802Z

Reserved: 2026-06-05T20:01:11.442Z

Link: CVE-2026-11422

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-05T21:16:29.177

Modified: 2026-06-05T21:16:29.177

Link: CVE-2026-11422

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.