Shd101wyy Markdown Preview Enhanced
Markdown Preview Enhanced 0.8.x Code Injection via WaveDrom Rendering
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.8.27
Fixed in 0.8.27
- < 0.9.28
Fixed in 0.9.28
Mitigation
Upgrade Markdown Preview Enhanced to 0.8.27 or later.
Upgrade crossnote to 0.9.28 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.