CVE-2026-49493: shd101wyy Markdown Preview Enhanced · Code 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, 06:59 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% 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 29 Oct 2026.
What to do
Upgrade Markdown Preview Enhanced and shd101wyy/markdown-preview-enhanced to 0.8.28.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| shd101wyyMarkdown Preview Enhanced | Affected
| Fixed in
|
npmshd101wyy/markdown-preview-enhancedpkg:npm/shd101wyy/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
Upgrade Markdown Preview Enhanced to version 0.8.28 or later, where the vulnerability is fixed by replacing the unsafe code evaluation with safe JSON5 parsing. No other mitigations are indicated or recommended by the vendor advisory. Patch status is not explicitly stated but the fix is included in version 0.8.28.
Description
Markdown Preview Enhanced before 0.8.28 parses Bitfield fenced code blocks with interpretJS(), which evaluates the block content as code via vm.runInNewContext(), allowing arbitrary code execution. A crafted markdown document containing a malicious bitfield code block executes attacker-controlled code on the server side when the document is rendered or exported. Fixed in 0.8.28 by parsing bitfield register definitions with JSON5.parse(), since they are purely data.