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.
Metrics
Affected Vendors & Products
References
History
Fri, 05 Jun 2026 18:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS() | |
| First Time appeared |
Markdown Preview Enhanced Project
Markdown Preview Enhanced Project markdown Preview Enhanced |
|
| Weaknesses | CWE-94 | |
| CPEs | cpe:2.3:a:markdown_preview_enhanced_project:markdown_preview_enhanced:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Markdown Preview Enhanced Project
Markdown Preview Enhanced Project markdown Preview Enhanced |
|
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-06-05T17:49:52.826Z
Reserved: 2026-05-31T11:54:34.993Z
Link: CVE-2026-49493
No data.
Status : Deferred
Published: 2026-06-05T18:17:33.723
Modified: 2026-06-05T18:59:54.823
Link: CVE-2026-49493
No data.
OpenCVE Enrichment
No data.