CVE-2026-49492
published high CVSS 4.0 · 8.6Markdown Preview Enhanced OS Command Injection in External File and Link Opening
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| shd101wyy | — | Markdown Preview Enhanced0 to < 0.8.28 · Platforms: Windows | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| shd101wyy | Markdown Preview Enhanced | 0 to < 0.8.28 (affected · semver) | VulnCheck · cna |
Weaknesses
1- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
2- Markdown Preview Enhanced 0.8.28 Release Notes https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28
- VulnCheck Advisory: Markdown Preview Enhanced OS Command Injection in External File and Link Opening https://www.vulncheck.com/advisories/markdown-preview-enhanced-os-command-injection-in-external-file-and-link-opening
Provider assertions
2VulnCheck · cna
Markdown Preview Enhanced OS Command Injection in External File and Link Opening
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c01c88f07f7c6902577923bd1e4ae501eeec046895e0cf228329931adaa665b2
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record