Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 16 min 168 bronnen 1 kritiek 49 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-53427

NONE Gepubliceerd: CWE-79

Beschrijving NL

Onjuiste neutralisatie van invoer tijdens het genereren van webpagina's ('Cross-site Scripting') kwetsbaarheid in leandrocp MDEx maakt opgeslagen of gereflecteerde cross-site scripting mogelijk via door aanvallers gecontroleerde Markdown. Wanneer syntax highlighting en full info-string forwarding (render: [full_info_string: true]) zijn ingeschakeld, kopieert de Lumis-adapter de waarde van het highlight_lines_class info-string-attribuut van een codehek, unescaped, naar het class-attribuut van elke gerenderde regel. 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_highlight interpolates that value directly into the class attribute of the per-line<div>. Een enkel geciteerd shell-token behoudt een binnenste dubbele aanhalingstekens door shlex-parsing, dus een waarde zoals '">alert(1)' beëindigt het klasse-attribuut vroegtijdig en de opmaak die volgt wordt uitgezonden als live HTML. Een aanvaller die Markdown kan indienen (via opmerkingen, berichten, wikipagina's, documentatie of door gebruikers gegenereerde inhoud) kan willekeurige HTML en JavaScript injecteren die wordt uitgevoerd in de browser van elke gebruiker die de weergegeven uitvoer bekijkt, waardoor sessiediefstal, accountovername en andere aanvallen aan de clientzijde mogelijk zijn. Er zijn geen authenticatie of speciale privileges vereist. De kwetsbare native code werd oorspronkelijk verzonden binnen mdex (in native/comrak_nif/src/lumis_adapter.rs) en werd later geëxtraheerd naar het afzonderlijke mdex_native-pakket (native/mdex_native_nif/src/lumis_adapter.rs), waar het ongepatcht blijft. Dit probleem heeft invloed op mdex van 0.11.3 vóór 0.12.3 en mdex_native van 0.1.0 vóór 0.2.3.

Origineel (Engels) tonen

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 '">alert(1)' 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.

References