# CVE-2026-49493: Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-06-05T17:49:52.826Z
- Modified: 2026-11-08T14:04:54.235Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- shd101wyy Markdown Preview Enhanced: before 0.8.28

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.28> (release-notes)
- <https://www.vulncheck.com/advisories/markdown-preview-enhanced-arbitrary-code-execution-via-bitfield-interpretjs> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-49493](https://www.cve.org/CVERecord?id=CVE-2026-49493), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-49493](https://nvd.nist.gov/vuln/detail/CVE-2026-49493), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-49493 · Whole record: https://cve.day/CVE-2026-49493.json · Rebuilt by cve.day 2026-11-25T22:59:23.896Z
