CVE-2026-50733: shd101wyy Markdown Preview Enhanced · Eval Injection
Affects shd101wyy Markdown Preview EnhancedSource CVE Database V5
Not known to be exploited · CVSS 8.6 High : upgrade to 0.8.28 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.8.28
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade Markdown Preview Enhanced and shd101wyy/vscode-markdown-preview-enhanced to 0.8.28.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| shd101wyyMarkdown Preview Enhanced | Affected
| Fixed in
|
GitHubshd101wyy/vscode-markdown-preview-enhancedpkg:github/shd101wyy/vscode-markdown-preview-enhancedOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Markdown Preview Enhanced version 0.8.28, which replaces the unsafe eval()-based parsing with JSON5.parse() and sanitizes WaveDrom data scripts. Users should upgrade to version 0.8.28 or later to remediate this vulnerability. Since no vendor advisory is provided, users should verify the update from official sources. Until upgraded, avoid previewing or exporting untrusted markdown documents containing WaveDrom diagrams.
Description
Markdown Preview Enhanced before 0.8.28 parses WaveDrom diagrams by evaluating untrusted markdown content with eval(), allowing arbitrary JavaScript execution. The flaw affects every render path - the live preview (window.eval) and presentation mode plus HTML export (the bundled WaveDrom.ProcessAll()/eva() helpers) - and can also be triggered through a <script type="WaveDrom"> element injected via raw HTML in markdown. When a victim previews or exports a crafted markdown document, an attacker can execute arbitrary code, leading to arbitrary file write. Fixed in 0.8.28 by parsing with JSON5.parse() and sanitizing WaveDrom data scripts to inert strict JSON.