Shd101wyy Markdown Preview Enhanced
Markdown Preview Enhanced OS Command Injection in External File and Link Opening
Markdown Preview Enhanced before 0.8.28 opens external files and links from the preview through a shell and does not validate untrusted inputs taken from the markdown document - the diagram filename attribute, imported file paths, and the latex_engine code-chunk attribute. On Windows, a crafted markdown document can inject operating system commands that execute when the document is previewed. Fixed in 0.8.28 by passing these inputs as literal arguments instead of through a shell and validating them before use.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.8.28
Fixed in 0.8.28
Mitigation
Upgrade Markdown Preview Enhanced to 0.8.28 or later.
References
- Release notes github.com/shd101wyy/vscode-markdown-preview-e…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| byte16384/CVE-2026-49492-PoC | 11 Jun 2026 +5.7 d | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.