Arbitrary Code Execution in Markdown Preview Enhanced by shd101wyy
CVE-2026-50733

8.6HIGH

Key Information:

Vendor

Shd101wyy

Vendor
CVE Published:
5 June 2026

What is CVE-2026-50733?

Markdown Preview Enhanced prior to version 0.8.28 has a significant security flaw that permits arbitrary JavaScript code execution through the parsing of untrusted markdown content, specifically when evaluating WaveDrom diagrams. The vulnerability can be exploited in various render paths, including live preview and HTML export functionalities. Attackers can leverage this flaw by inserting a crafted markdown document, which allows them to execute arbitrary code and potentially perform unauthorized file writes. The issue has been mitigated in version 0.8.28 by implementing JSON5.parse() for parsing and sanitizing WaveDrom data scripts to comply with strict JSON, thus preventing such exploits.

Affected Version(s)

Markdown Preview Enhanced 0 < 0.8.28

References

CVSS V4

Score:
8.6
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Neo by ProjectDiscovery
.