Skip to main content
← All vulnerabilities
CVE-2026-11422

Markdown Preview Enhanced 0.8.x Code Injection via WaveDrom Rendering

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.8.27, 0.9.28
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • shd101wyy Markdown Preview Enhanced

    fixed in 0.8.27

  • shd101wyy crossnote

    fixed in 0.9.28

References 4

GitHub · shd101wyy/vscode-markdown-preview-enhanced

GitHub · shd101wyy/crossnote

vulncheck.com