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.
Project Subscriptions
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
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
|
Projects
Sign in to view the affected projects.
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
Updated: 2026-06-05T19:45:03Z
Weaknesses