Arbitrary Code Execution Vulnerability in Markdown Preview Enhanced by shd101wyy
CVE-2026-49493
8.6HIGH
What is CVE-2026-49493?
The Markdown Preview Enhanced extension, up until version 0.8.28, contains a vulnerability that allows for arbitrary code execution through the use of improperly handled bitfield fenced code blocks. Utilizing the interpretJS() function, the extension evaluates content as executable code, which could lead to the execution of malicious commands on the server when a specially crafted markdown document is processed. This vulnerability has been addressed in version 0.8.28 by implementing a safer parsing mechanism using JSON5.parse(), ensuring that bitfield register definitions are treated as data and not executable code.
Affected Version(s)
Markdown Preview Enhanced 0 < 0.8.28
