CVE-2026-97699lepture mistune
High 7.5 No auth needed
- Priority
- 65
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Nov 17, 2026
- Updated
- Nov 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for mistune.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mistune |
< 3.3.4 |
3.3.4 |
pip install "mistune>=3.3.4" |
Per OSV / GitHub Advisories (GHSA-ww7q-mxrj-5ffg). Check the version in your lockfile before upgrading.
Affected products
- lepture · mistune
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.