8.6high
Markdown Preview Enhanced OS Command Injection in External File and Link Opening
- Severity
- 8.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| shd101wyy Markdown Preview Enhanced | before 0.8.28 | CVE List |
All scores
| VulnCheck | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Markdown Preview Enhanced anterior a la versión 0.8.28 abre archivos externos y enlaces desde la vista previa a través de un shell y no valida las entradas no confiables tomadas del documento markdown - el atributo de nombre de archivo del diagrama, las rutas de archivo importadas y el atributo de fragmento de código latex_engine. En Windows, un documento markdown manipulado puede inyectar comandos del sistema operativo que se ejecutan cuando se previsualiza el documento. Solucionado en la versión 0.8.28 al pasar estas entradas como argumentos literales en lugar de a través de un shell y validarlas antes de su uso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49492 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-49492 changed 2026-10-26 | Public domain |