Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-44898

MEDIUM · 6.1 CVSS Gepubliceerd: CWE-79

Beschrijving NL

Mistune is een Python Markdown-parser met renderers en plug-ins. Voorafgaand aan 3.2.1 bouwt render_toc_ul() een <ul> inhoudsopgaveboom uit een lijst met (niveau, id, tekst) tupels. Zowel de id-waarde (gebruikt als href="#") als de tekstwaarde (gebruikt als het zichtbare linklabel) worden in <a> tags ingevoegd via een gewone Python-indelingsreeks — zonder HTML-escaping toegepast op beide waarden. Wanneer kop-ID's zijn afgeleid van door de gebruiker geleverde koptekst (de standaard use-case voor leesbare slakankers), kan een aanvaller een koptekst maken waarvan de tekst uit de href="#..." attribuutcontext breekt, waarbij willekeurige HTML-tags inclusief blokken rechtstreeks in de weergegeven TOC worden geïnjecteerd. Deze kwetsbaarheid is opgelost in 3.2.1.

Origineel (Engels) tonen

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#") and the text value (used as the visible link label) are inserted into <a> tags via a plain Python format string — with no HTML escaping applied to either value. When heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the href="#..." attribute context, injecting arbitrary HTML tags including blocks directly into the rendered TOC. This vulnerability is fixed in 3.2.1.

Vendors

Mistune Project

Affected products

Mistune

References