High severity · published Jun 5, 2026
CVE-2026-49492
Markdown Preview Enhanced OS Command Injection in External File and Link Opening
8.8
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 27% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MP
Markdown Preview Enhanced · shd101wyy
before 0.8.28 · source: vendor
Affected product
MP
Markdown Preview Enhanced
shd101wyy
More from Markdown Preview Enhanced
8.8
CVE-2026-50733
Markdown Preview Enhanced Arbitrary Code Execution via WaveDrom eval()
8.8
CVE-2026-49493
Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()
8.8
CVE-2025-65716
An issue in Visual Studio Code Extensions Markdown Preview Enhanced v0.8.18 allows attackers to execute arbitrary code via uploading a crafted .Md file
7.1
CVE-2026-11422
Markdown Preview Enhanced 0.8.x Code Injection via WaveDrom Rendering