# CVE-2026-49492: Markdown Preview Enhanced OS Command Injection in External File and Link Opening

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-06-05T17:49:52.057Z
- Modified: 2026-11-08T14:04:53.515Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- shd101wyy Markdown Preview Enhanced: before 0.8.28

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28> (release-notes)
- <https://www.vulncheck.com/advisories/markdown-preview-enhanced-os-command-injection-in-external-file-and-link-opening> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-49492](https://www.cve.org/CVERecord?id=CVE-2026-49492), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-49492](https://nvd.nist.gov/vuln/detail/CVE-2026-49492), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-49492 · Whole record: https://cve.day/CVE-2026-49492.json · Rebuilt by cve.day 2026-11-25T22:59:23.896Z
