{"id":"CVE-2026-49492","aliases":["CVE-2026-49492"],"related":[],"kind":"vulnerability","state":"published","title":"Markdown Preview Enhanced OS Command Injection in External File and Link Opening","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-05T17:49:52.057Z","modified":"2026-11-08T14:04:53.515Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.8.28","status":"affected"}],"vendor":"shd101wyy","product":"Markdown Preview Enhanced","platforms":["Windows"],"source":"cvelist"}],"references":[{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/markdown-preview-enhanced-os-command-injection-in-external-file-and-link-opening","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["byte16384"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-08T16:13:18.480Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49492","url":"https://www.cve.org/CVERecord?id=CVE-2026-49492","licence":"CVE Terms of Use","modified":"2026-11-08T14:04:53.515Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49492","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49492","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:23.896Z","epss":{"score":0.0034,"percentile":0.29483,"date":"2026-12-01T12:00:22.000Z"}}