CVE-2026-53427
Last modified
CVE-2026-53427 is a low-severity vulnerability rated 2.3/10 on the CVSS scale. 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>.
Description
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/lumis_adapter.rs) and was later extracted into the separate mdex_native package (native/mdex_native_nif/src/lumis_adapter.rs), where it remains unpatched. This issue affects mdex from 0.11.3 before 0.12.3, and mdex_native from 0.1.0 before 0.2.3.
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-53427?
How severe is CVE-2026-53427?
How do I fix CVE-2026-53427?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-53412Improper Input Validation in Zoom Desktop Client for Windows…9.8
- CVE-2026-5342A flaw has been found in LibRaw up to 0.22.0. This affects t…5.5
- CVE-2026-53421Improper Isolation or Compartmentalization vulnerability in …9.8
- CVE-2026-53422Observable Response Discrepancy vulnerability in Erlang OTP …4.3
- CVE-2026-53423Allocation of Resources Without Limits or Throttling vulnera…5.9
- CVE-2026-53426Allocation of Resources Without Limits or Throttling vulnera…8.2
- CVE-2026-53428Memory Allocation with Excessive Size Value vulnerability in…6.9
- CVE-2026-53429Missing Release of Memory after Effective Lifetime vulnerabi…6.9
- CVE-2026-5343Improper Check for Unusual or Exceptional Conditions vulnera…7.4
- CVE-2026-53430Improper Handling of Highly Compressed Data (Data Amplificat…8.7
- CVE-2026-53432fzf is vulnerable to Integer Overflow leading to crash in Fu…7.5
- CVE-2026-53433fzf is vulnerable to a Denial of Service (DoS) due to ineffi…7.5
Are you affected by CVE-2026-53427?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
