CVE-2026-11422
7.1 HIGHMarkdown Preview Enhanced 0.8.x with crossnote engine 0.9.28 contains a code injection vulnerability in the WaveDrom rendering pipeline t...
Published: 2026-06-05 · Last updated: 2026-06-08
Severity and scoring
- CVSS
- 7.1 HIGH
- Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CWE
- CWE-95
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-11422
- [Other]https://github.com/shd101wyy/crossnote/commit/5588ca2121c3da43fe331575dc5cf4ef347b91ee
- [Other]https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/dcd80281c986293b93d9f1af34ced64dcb230c77
- [Other]https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315
- [Other]https://www.vulncheck.com/advisories/markdown-preview-enhanced-x-code-injection-via-wavedrom-rendering
- [Other]https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315
Related CVEs
Same CWE
- CVE-2026-52858 — Vim is an open source, command line text editor
- CVE-2026-47167 — Vim is an open source, command line text editor
- CVE-2026-50733 — Markdown Preview Enhanced before 0.8.28 parses WaveDrom diagrams by evaluating untrusted markdown content with eval(), allowing arbitrary... (8.8 HIGH)
- CVE-2026-8914 — In Teltonika Networks RUTOS devices, running versions 7.22 through 7.23.2 and TSWOS devices running versions 1.09 through 1.09.1, due to ...
- CVE-2026-48962 — IO::Compress versions before 2.220 for Perl can execute arbitrary code in File::GlobMapper via an attacker-controlled output glob (7.3 HIGH)