CVE-2026-49493

HIGH CVSS 4.0: 8.6 EPSS 0.33%
Updated Oct 26, 2026
Markdown Preview
Parameter Value
CVSS 8.6 (HIGH)
Affected Versions before 0.8.28
Fixed In 0.8.28
Type CWE-94 (Code Injection)
Vendor Markdown Preview
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)