{"id":"CVE-2026-49493","published":"2026-06-05T17:49:52Z","modified":"2026-11-08T14:04:54Z","title":"Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()","vendor":"shd101wyy","product":"Markdown Preview Enhanced","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00565,"percentile":0.40706,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28","tags":["release-notes"]},{"url":"https://www.vulncheck.com/advisories/markdown-preview-enhanced-arbitrary-code-execution-via-bitfield-interpretjs","tags":["third-party-advisory"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":8.14},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"shd101wyy","affectedVersions":[{"vendor":"shd101wyy","product":"Markdown Preview Enhanced","versions":["< 0.8.28"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-09T14:11:41.871600Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-34869","exploited":false,"provenance":"source"}}