CVE-2026-97699
7.5HighPublished 17 Nov 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-400, CWE-407
What an attacker gets
Remote attackers can cause a permanent denial of service by exhausting CPU resources. They only need to submit specially crafted Markdown to an application using the library.
Root cause
The inline image parser fails to properly limit recursion depth for nested image syntax, leading to quadratic complexity.
Affected versions
Mistune versions prior to 3.3.4
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fix & remediation
Upgrade to Mistune 3.3.4 or later. If you cannot patch immediately, implement strict input length limits or timeouts on your Markdown rendering service.
$ pip install --upgrade mistuneAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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 renderer and no plugins can perform quadratic CPU work and keep a worker at 100 percent utilization. This issue is fixed in version 3.3.4.