CVE-2026-97699 json
Mistune: Quadratic-time DoS in inline image parsing (precedence_scan) bypasses not-is-image guards
published 30d ago modified 14h ago also EUVD-2026-127201 , GHSA-ww7q-mxrj-5ffg
Unreviewed: the maintainers' own advisory
Published by the maintainers on their GitHub repository lepture/mistune. GitHub has not reviewed it into the GitHub Advisory Database, so the affected packages and versions are the maintainers' word. Read the full advisory on GitHub.
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no EPSS score yet
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mistune 3.3.4
Is CVE-2026-97699 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 15h ago
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mistune | <3.3.4 |
3.3.4 |
Affected products
- lepture mistune
Classification
References
Sources
- CVE List CVE-2026-97699
- NVD CVE-2026-97699
- Maintainer advisory GHSA-ww7q-mxrj-5ffg
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of lepture/mistune published their own advisory on GitHub. Reviewed sources take precedence over it.