{"id":"CVE-2026-49492","published":"2026-06-05T17:49:52Z","modified":"2026-11-08T14:04:53Z","title":"Markdown Preview Enhanced OS Command Injection in External File and Link Opening","vendor":"shd101wyy","product":"Markdown Preview Enhanced","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00466,"percentile":0.32371,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28","tags":["release-notes"]},{"url":"https://www.vulncheck.com/advisories/markdown-preview-enhanced-os-command-injection-in-external-file-and-link-opening","tags":["third-party-advisory"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":6.47},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"shd101wyy","affectedVersions":[{"vendor":"shd101wyy","product":"Markdown Preview Enhanced","versions":["< 0.8.28"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-08T16:13:18.480118Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-34868","exploited":false,"provenance":"source"}}