Skip to main content
VulnerabilityPublished Updated

CVE-2026-49493: shd101wyy Markdown Preview Enhanced · Code Injection

Affects shd101wyy Markdown Preview EnhancedSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.6 High : upgrade to 0.8.28 soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
shd101wyyMarkdown Preview EnhancedAffected
  • <0.8.28
Fixed in
  • 0.8.28
npmshd101wyy/markdown-preview-enhancedpkg:npm/shd101wyy/markdown-preview-enhancedOther threatsAffected
  • <0.8.28
Fixed in
  • 0.8.28

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.

References

Community reviews

Loading reviews…