Skip to content

CVE-2026-97699 Mistune: Quadratic-time DoS in inline image parsing (precedence_scan) bypasses not-is-image guards

HighCVSS 7.5 EPSS 0.67%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/mistune(Debian 12) = 2.0.4-1; = 2.0.4-2; = 3.0.2-1; = 3.0.2-2 +5 more No fix listed No fix yet
debian/mistune(Debian 13) = 3.1.3-1; = 3.1.4-1; = 3.3.4-1; = 3.4.0-1 +1 more No fix listed No fix yet
ubuntu/mistune(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/mistune(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/mistune(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/mistune(Ubuntu 26.10) All versions No fix listed No fix yet
debian/mistune(Debian 14) < 3.3.4-1; = 3.1.3-1; = 3.1.4-1 3.3.4-1 Fixed
pypi mistune(PyPI) < 3.3.4; = 0.1.0; = 0.2.0; = 0.3.0 +52 more 3.3.4 Fixed
lepture mistune = < 3.3.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
lepture mistune = < 3.3.4 No fix listed
debian/mistune(Debian:12) All versions No fix listed
debian/mistune(Debian:14) < 3.3.4-1 3.3.4-1
debian/mistune(Debian:13) All versions No fix listed
ubuntu/mistune(Ubuntu:22.04) All versions No fix listed
ubuntu/mistune(Ubuntu:24.04) All versions No fix listed
ubuntu/mistune(Ubuntu:26.04) All versions No fix listed
ubuntu/mistune(Ubuntu:26.10) All versions No fix listed
debian/mistune(Debian:12) = 2.0.4-1 No fix listed
debian/mistune(Debian:12) = 2.0.4-2 No fix listed
debian/mistune(Debian:12) = 3.0.2-1 No fix listed
debian/mistune(Debian:12) = 3.0.2-2 No fix listed
debian/mistune(Debian:12) = 3.1.3-1 No fix listed
debian/mistune(Debian:12) = 3.1.4-1 No fix listed
debian/mistune(Debian:12) = 3.3.4-1 No fix listed
debian/mistune(Debian:12) = 3.4.0-1 No fix listed
debian/mistune(Debian:13) = 3.1.3-1 No fix listed
debian/mistune(Debian:13) = 3.1.4-1 No fix listed
debian/mistune(Debian:13) = 3.3.4-1 No fix listed
debian/mistune(Debian:13) = 3.4.0-1 No fix listed
debian/mistune(Debian:14) = 3.1.3-1 No fix listed
debian/mistune(Debian:14) = 3.1.4-1 No fix listed
pypi mistune(PyPI) < 3.3.4 3.3.4
pypi mistune(PyPI) = 0.1.0 No fix listed
pypi mistune(PyPI) = 0.2.0 No fix listed
Show 53 more
ProductAffected versionsFixed in
pypi mistune(PyPI) = 0.3.0 No fix listed
pypi mistune(PyPI) = 0.3.1 No fix listed
pypi mistune(PyPI) = 0.4 No fix listed
pypi mistune(PyPI) = 0.4.1 No fix listed
pypi mistune(PyPI) = 0.5 No fix listed
pypi mistune(PyPI) = 0.5.1 No fix listed
pypi mistune(PyPI) = 0.6 No fix listed
pypi mistune(PyPI) = 0.7 No fix listed
pypi mistune(PyPI) = 0.7.1 No fix listed
pypi mistune(PyPI) = 0.7.2 No fix listed
pypi mistune(PyPI) = 0.7.3 No fix listed
pypi mistune(PyPI) = 0.7.4 No fix listed
pypi mistune(PyPI) = 0.8 No fix listed
pypi mistune(PyPI) = 0.8.1 No fix listed
pypi mistune(PyPI) = 0.8.2 No fix listed
pypi mistune(PyPI) = 0.8.3 No fix listed
pypi mistune(PyPI) = 0.8.4 No fix listed
pypi mistune(PyPI) = 2.0.0 No fix listed
pypi mistune(PyPI) = 2.0.0a1 No fix listed
pypi mistune(PyPI) = 2.0.0a2 No fix listed
pypi mistune(PyPI) = 2.0.0a3 No fix listed
pypi mistune(PyPI) = 2.0.0a4 No fix listed
pypi mistune(PyPI) = 2.0.0a5 No fix listed
pypi mistune(PyPI) = 2.0.0a6 No fix listed
pypi mistune(PyPI) = 2.0.0rc1 No fix listed
pypi mistune(PyPI) = 2.0.1 No fix listed
pypi mistune(PyPI) = 2.0.2 No fix listed
pypi mistune(PyPI) = 2.0.3 No fix listed
pypi mistune(PyPI) = 2.0.4 No fix listed
pypi mistune(PyPI) = 2.0.5 No fix listed
pypi mistune(PyPI) = 2.1.0 No fix listed
pypi mistune(PyPI) = 3.0.0 No fix listed
pypi mistune(PyPI) = 3.0.0a1 No fix listed
pypi mistune(PyPI) = 3.0.0a2 No fix listed
pypi mistune(PyPI) = 3.0.0a3 No fix listed
pypi mistune(PyPI) = 3.0.0rc1 No fix listed
pypi mistune(PyPI) = 3.0.0rc2 No fix listed
pypi mistune(PyPI) = 3.0.0rc3 No fix listed
pypi mistune(PyPI) = 3.0.0rc4 No fix listed
pypi mistune(PyPI) = 3.0.0rc5 No fix listed
pypi mistune(PyPI) = 3.0.1 No fix listed
pypi mistune(PyPI) = 3.0.2 No fix listed
pypi mistune(PyPI) = 3.1.0 No fix listed
pypi mistune(PyPI) = 3.1.1 No fix listed
pypi mistune(PyPI) = 3.1.2 No fix listed
pypi mistune(PyPI) = 3.1.3 No fix listed
pypi mistune(PyPI) = 3.1.4 No fix listed
pypi mistune(PyPI) = 3.2.0 No fix listed
pypi mistune(PyPI) = 3.2.1 No fix listed
pypi mistune(PyPI) = 3.3.0 No fix listed
pypi mistune(PyPI) = 3.3.1 No fix listed
pypi mistune(PyPI) = 3.3.2 No fix listed
pypi mistune(PyPI) = 3.3.3 No fix listed

References