CVE-2026-49493 Details
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.
A vulnerability allowing arbitrary code execution has been identified in Markdown Preview Enhanced versions prior to 0.8.28. The issue arises because the application parses Bitfield fenced code blocks using 'interpretJS()', which evaluates the content as code and executes it on the server side. This vulnerability can be exploited by crafting a markdown document with a malicious bitfield code block, which, when rendered or exported, executes attacker-controlled code.
Users can upgrade to Markdown Preview Enhanced version 0.8.28 or later to address this vulnerability. The updated version is available on the GitHub Releases page for the project.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 5, 2026CISA-ADP
Assessed Jun 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Markdown Preview Enhanced | >= 0, < 0.8.28 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 5, 2026 | New CVE Received | [email protected] |
Volerion