{"id":"CVE-2026-49492","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 th…","severity":"high","cvss":8.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-78"],"vendor":"shd101wyy","product":"Markdown Preview Enhanced","affected":["markdown_preview_enhanced < 0.8.28"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-08T16:13:18.480118Z"},"exploitAvailable":true,"published":"2026-06-05","updated":"2026-11-08","sourceUpdated":"2026-11-08T14:04:53.515Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-49492","references":[{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28","label":"Markdown Preview Enhanced 0.8.28 Release Notes"},{"url":"https://www.vulncheck.com/advisories/markdown-preview-enhanced-os-command-injection-in-external-file-and-link-opening","label":"VulnCheck Advisory: Markdown Preview Enhanced OS Command Injection in External File and Link Opening"}],"tags":["cve.org","exploit-available"],"epss":0.0034,"epssPercentile":0.27677,"exploits":{"github":1,"githubRepos":["https://github.com/byte16384/CVE-2026-49492-PoC"],"checkedAt":"2026-11-08T14:51:57.340Z"},"ingestedAt":"2026-11-08T14:51:22.388Z","slug":"CVE-2026-49492","body":"## Overview\n\nMarkdown 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.\n\n## Affected\n\n- `markdown_preview_enhanced < 0.8.28`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"midnight","depthScore":60,"depthScoreParts":{"impact":48.4,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[]}