PT-2026-53680 · Unknown+1 · Mdex Native+1

·

CVE-2026-53427

·

Published

2026-06-29

·

Updated

2026-06-29

CVSS v4.0

2.3

Low

VectorAV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions mdex versions 0.11.3 through 0.12.2 mdex native versions 0.1.0 through 0.2.2
Description Improper neutralization of input during web page generation allows stored or reflected cross-site scripting via attacker-controlled Markdown. When syntax highlighting and full info-string forwarding (render: [full info string: true]) are enabled, the Lumis adapter copies the value of a code fence's highlight lines class info-string attribute unescaped into the class attribute of every rendered line. The comrak nif::lumis adapter::LumisAdapter::parse custom attributes() function shlex-parses the info string and stores key-value pairs verbatim. Subsequently, highlight lines config pulls highlight lines class into the per-line class value, and write highlighted() interpolates that value directly into the class attribute of the per-line <div>. A single-quoted shell token can preserve an inner double quote, allowing an attacker to terminate the class attribute and inject arbitrary HTML and JavaScript. This can lead to session theft and account takeover without requiring authentication or special privileges.
Recommendations Update mdex to version 0.12.3 or later. Update mdex native to version 0.2.3 or later. As a temporary workaround, do not enable full info-string forwarding (render: [full info string: true]) when rendering untrusted Markdown. Restrict highlight lines class values to a safe character set (e.g., [A-Za-z0-9 -]) before rendering.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-53427
GHSA-V664-PMXR-MXXX

Affected Products

Mdex
Mdex Native