CVE-2026-49492: Markdown Preview Enhanced - Command Injection
- Cve: CVE-2026-49492
- Name: Markdown Preview Enhanced - Command Injection
- 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.
- Impact: Attackers can execute arbitrary operating system commands on Windows by previewing crafted markdown documents, potentially leading to full system compromise.
- Remediation: Update to version 0.8.28 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker must trick user into previewing crafted markdown document
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.0034
- Epss percentile: 0.27781
- Assignee: [email protected]
- Published at: 2026-06-05T18:17:33Z
- Age in days: 172
- Modified at: 2026-10-26T11:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-49492
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/byte16384/CVE-2026-49492-PoC | poc-in-github | 2026-06-11 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| markdown_preview_enhanced_project:markdown_preview_enhanced | < 0.8.28 | no | cna | /v1/products/markdown_preview_enhanced_project/markdown_preview_enhanced |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| shd101wyy/vscode-markdown-preview-enhanced | releases | yes | /v1/repositories/shd101wyy/vscode-markdown-preview-enhanced |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-06-11
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts