Description
Mistune from 3.0.0 before 3.3.0 contains an algorithmic complexity denial of service vulnerability in the parse_link_text function in src/mistune/helpers.py. Attackers can submit markdown with deeply nested square brackets triggering quadratic parsing time, exhausting server CPU with small crafted requests.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| lepture | mistune | 3.0.0 – < 3.3.0 | 3.3.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mistune | No fix yet | — |
| Debian 13 | mistune | No fix yet | — |
| Debian 12 | mistune | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mistune | No fix yet | — |
| Ubuntu 26.04 LTS | mistune | No fix yet | — |
| Ubuntu 24.04 LTS | mistune | No fix yet | — |
| Ubuntu 22.04 LTS | mistune | No fix yet | — |
| Ubuntu 20.04 LTS | mistune | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mistune | No fix yet | — |
| Ubuntu 16.04 LTS | mistune | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-mistune | 3.4.0-2.1 | openSUSE-SU-2026:12407-1 |
Advisories 1
- openSUSE-SU-2026:12407-1 python313-mistune-3.4.0-2.1 on GA media SUSE / openSUSE Security Updates · Nov 4, 2026
References
- GitHub Security Advisory (GHSA-3q64-rw38-243v) vendor-advisory
- VulnCheck Advisory: Mistune 3.0.0 before 3.3.0 Denial of Service via Nested Bracket Parsing third-party-advisory