CVE-2026-53427: leandrocp MDEx XSS in Lumis adapter code-fence attributes

CVE-2026-53427 · Severity: info · CVSS 2.3 · Published 2026-06-29

MDEx is a Markdown processing library used to convert text into HTML for display on websites. A security flaw allows attackers to embed malicious code within Markdown content, such as comments or forum posts. If a user views this content, the attacker could steal login sessions, take over accounts, or perform other unauthorized actions in the user's browser.

Quick answers

Is CVE-2026-53427 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-53427 being exploited in the wild.
How severe is CVE-2026-53427?
Informational severity, with a CVSS score of 2.3, published 29 June 2026.
Which products and versions are affected?
leandrocp mdex 0.11.3 to 0.12.2; leandrocp mdex_native 0.1.0 to 0.2.2.
Is there a fix for CVE-2026-53427?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-53427 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-53427?
Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A Cross-Site Scripting (XSS) vulnerability exists in the Lumis adapter of MDEx and mdex_native. When syntax highlighting and full info-string forwarding (render: [full_info_string: true]) are enabled, the library fails to escape the 'highlight_lines_class' attribute from Markdown code fences. The 'parse_custom_attributes' function in 'lumis_adapter.rs' uses shlex-parsing which preserves inner double quotes in single-quoted tokens, allowing an attacker to terminate the HTML class attribute and inject live HTML tags. This can be exploited by any unauthenticated user capable of submitting Markdown content. The issue is fixed in mdex 0.12.3 and mdex_native 0.2.3.

Affected products

  • leandrocp mdex 0.11.3 to 0.12.2
  • leandrocp mdex_native 0.1.0 to 0.2.2

Timeline

  • 2026-06-29: disclosed
  • 2026-06-29: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.