CVE-2026-49492CWE-78

Markdown Preview Enhanced OS Command Injection in External File and Link Opening

High · published June 5, 2026

CVSS v4.0
8.6
EPSS
0%
Percentile
39.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.6 · HIGH
Vector
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
EPSS
0.00466 · 39.3th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-06-05T17:49Z
EPSS history
Timeline
  • 05 JUN 17:49Z
    Markdown Preview Enhanced OS Command Injection in External File and Link Opening
    cvelistv5