{"id":"CVE-2026-49493","aliases":["CVE-2026-49493"],"related":[],"kind":"vulnerability","state":"published","title":"Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-05T17:49:52.826Z","modified":"2026-11-08T14:04:54.235Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.8.28","status":"affected"}],"vendor":"shd101wyy","product":"Markdown Preview Enhanced","source":"cvelist"}],"references":[{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/markdown-preview-enhanced-arbitrary-code-execution-via-bitfield-interpretjs","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-09T14:11:41.871Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49493","url":"https://www.cve.org/CVERecord?id=CVE-2026-49493","licence":"CVE Terms of Use","modified":"2026-11-08T14:04:54.235Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49493","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49493","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:23.896Z","epss":{"score":0.00327,"percentile":0.2779,"date":"2026-12-01T12:00:22.000Z"}}