CVE-2026-97699
Description
mistune 3.3.4: inline IMAGE parsing skips both linearizing guards ('not is_image') so every '![' opener reaches precedence_scan — '![' * 20000 + ']' * 20000 (~60 KB, no plugins) renders in ~16s on 3.3.3, 0.11s on 3.3.4 (b4dd3284). Real pip differential, measured quadratic
CVE-CVE-2026-97699 Details
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.4, inline image parsing sends nested ![ openers through precedence_scan because the no_link_before and _label_contains_link linearization guards are gated by not is_image. In src/mistune/inline_parser.py, each outer image opener can therefore search the remaining image body, while max_image_depth does not apply because the failed scans do not produce image tokens. Rendering untrusted Markdown with the default HTML rende...
Related PoCs for CVE-2026-97699
No other PoCs found for this CVE.