RCE in Shd101wyy Markdown Preview Enhanced
CVE-2026-49492
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.005 (39.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 39th percentile — 39.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Shd101wyy Markdown Preview Enhanced — versions 0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28 (release-notes)
- www.vulncheck.com/advisories/markdown-preview-enhanced-os-command-injection-in-… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-49492?
- CVE-2026-49492 is a high-severity vulnerability in Shd101wyy Markdown Preview Enhanced, classified under OS Command Injection. CVSS score: 8.8/10. Published 2026-06-05.
- How severe is CVE-2026-49492?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2026-49492 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.