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.
Project Subscriptions
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Fri, 05 Jun 2026 18:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Markdown Preview Enhanced OS Command Injection in External File and Link Opening | |
| First Time appeared |
Markdown Preview Enhanced Project
Markdown Preview Enhanced Project markdown Preview Enhanced |
|
| Weaknesses | CWE-78 | |
| CPEs | cpe:2.3:a:markdown_preview_enhanced_project:markdown_preview_enhanced:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Markdown Preview Enhanced Project
Markdown Preview Enhanced Project markdown Preview Enhanced |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-06-05T17:49:52.057Z
Reserved: 2026-05-31T11:54:34.993Z
Link: CVE-2026-49492
No data.
Status : Deferred
Published: 2026-06-05T18:17:33.377
Modified: 2026-06-05T18:59:54.823
Link: CVE-2026-49492
No data.
OpenCVE Enrichment
Updated: 2026-06-05T20:15:09Z
Weaknesses