Skip to content

CVE-2026-97698 Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links

HighCVSS 7.5 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.4, parse_link_href performs an unbounded parenthesis-balancing scan to the end of the document for each unmatched opening parenthesis reached through an empty [] link label. In src/mistune/helpers.py and src/mistune/inline_parser.py, the empty label bypasses no_close_bracket_before, and no_link_before advances only past the short label, so successive [] ( candidates repeatedly scan the remaining document. 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