Impact
The vulnerability is an improper neutralization of input during web page generation in leandrocp MDEx, allowing authenticated or unauthenticated users to embed non‑escaped HTML and JavaScript via the highlight_lines_class attribute of a code fence. When full_info_string forwarding is enabled, the value is copied directly into the class attribute of rendered lines, and a specially crafted string such as '"><script>alert(1)</script>' can terminate the class attribute prematurely and inject executable code. This results in stored or reflected cross‑site scripting that runs in the browsers of any user who views the affected Markdown content, enabling session theft, account takeover, and other client‑side attacks.
Affected Systems
Affected products are leandrocp MDEx and its native counterpart MDEx_Native. Versions earlier than 0.12.3 of MDEx and earlier than 0.2.3 of MDEx_Native are vulnerable. The flaw manifests in any context where users can submit Markdown, such as comments, posts, wiki pages, or documentation that is rendered without proper sanitization.
Risk and Exploitability
The CVSS score for this flaw is 2.3, indicating low severity from a vulnerability scoring perspective, and no EPSS or KEV listing is currently available. However, the lack of authentication requirements and the ability to inject arbitrary client‑side code make it an attractive target for attackers seeking account takeover or credential theft. The likely attack vector is a user supplying malicious Markdown content to a public or shared platform that uses MDEx rendering with full_info_string forwarding enabled.
OpenCVE Enrichment