Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/shd101wyy/crossnote/commit/5588ca2121c3da43fe331575dc5cf4ef34
- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/dcd80281c98
- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315
- https://www.vulncheck.com/advisories/markdown-preview-enhanced-x-code-injection-
- https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/2315
FAQ
What is CVE-2026-11422?
CVE-2026-11422 is a vulnerability with a CVSS score of 7.1 (HIGH). 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 embeddi...
How severe is CVE-2026-11422?
CVE-2026-11422 has been rated HIGH with a CVSS base score of 7.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-11422?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.