8.6high
Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()
- Severity
- 8.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.33% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| shd101wyy Markdown Preview Enhanced | before 0.8.28 | CVE List |
All scores
| VulnCheck | 8.6high CVSS:4.0 | 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 |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Markdown Preview Enhanced anterior a la versión 0.8.28 analiza bloques de código delimitados de Bitfield con interpretJS(), que evalúa el contenido del bloque como código a través de vm.runInNewContext(), permitiendo la ejecución de código arbitrario. Un documento markdown manipulado que contiene un bloque de código bitfield malicioso ejecuta código controlado por el atacante en el lado del servidor cuando el documento se renderiza o exporta. Corregido en la versión 0.8.28 al analizar las definiciones de registro de bitfield con JSON5.parse(), ya que son puramente datos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49493 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-49493 changed 2026-10-26 | Public domain |