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-44899

MEDIUM · 4.7 CVSS Gepubliceerd: CWE-79

Beschrijving NL

Mistune is een Python Markdown-parser met renderers en plug-ins. Voorafgaand aan 3.2.1 valideert de Image directive plugin de :width: en :height: opties met een regex gecompileerd als _num_re = re.compile (r"^d+(?:.d*)?"). Wanneer de gevalideerde waarde geen gewoon geheel getal is, voegt render_block_image() deze rechtstreeks in een kenmerk style="width:...;" of style="height:...;" in. Omdat de waarde werd geaccepteerd door de prefix-only regex, bereikt elke CSS na de eerste cijfers de stijl= attribuut woordelijk en zonder te ontsnappen. 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, the Image directive plugin validates the :width: and :height: options with a regex compiled as _num_re = re.compile(r"^d+(?:.d*)?"). When the validated value is not a plain integer, render_block_image() inserts it directly into a style="width:...;" or style="height:...;" attribute. Because the value was accepted by the prefix-only regex, any CSS after the leading digits reaches the style= attribute verbatim and without escaping. This vulnerability is fixed in 3.2.1.

Vendors

Mistune Project

Affected products

Mistune

References