CVE-2026-97698
published high CVSS 3.1 · 7.5Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lepture | — | mistune< 3.3.4 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3386 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | python-mistuneaarch64 | Listed in advisory | Not stated | ALAS2023-2026-3386 |
| Amazon Linux | AL2023 | python-mistunesrc | Listed in advisory | Not stated | ALAS2023-2026-3386 |
| Amazon Linux | AL2023 | python-mistunex86_64 | Listed in advisory | Not stated | ALAS2023-2026-3386 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lepture | mistune | < 3.3.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-407 CWE-407: Inefficient Algorithmic Complexity
References
3Provider assertions
2GitHub_M · cna
Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c1d3b2d782234ebd83f0b4405d378024cd2c9df53e0439c38fe87592bb943cca
- Ingested
- 17 Nov 2026, 19:40:40 UTC
- Source record
- Official CVE record