// Security Advisory Triage

Mistune 3.3.3 and earlier vulnerable to quadratic-time DoS

GitHub advisories — pip · published 2026-11-20 07:21 UTC
ACTION NEEDED PATCH_NOW SECURITY
WHAT CHANGEDGitHub published GHSA-phmp-hrw4-r36r on 19 November 2026, rating CVE-2026-97698 high severity. Mistune versions before 3.3.4 are vulnerable to quadratic-time denial of service through unbounded parenthesis scanning when parsing empty-label links. Version 3.3.4 patches the vulnerability.
WHY IT MATTERSAn attacker can cause CPU exhaustion in any service that parses untrusted Markdown through mistune, including user-generated content, documentation sites, and API endpoints that accept Markdown input. The quadratic complexity means processing time grows exponentially with input size.
WHAT TO DOUpgrade mistune to 3.3.4. Check your dependency tree with `pip list | grep mistune` or `poetry show mistune` to confirm the installed version, as mistune is a transitive dependency in many Python Markdown toolchains.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-phmp-hrw4-r36r
+summary: Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links
+severity: high
+published_at: 2026-11-19T22:44:42Z
+cve_id: CVE-2026-97698
+vulnerabilities[].package.name: mistune
+vulnerabilities[].first_patched_version: 3.3.4
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.78, needed 0.5
triage reasoningMistune is a widely-used Python markdown parser. DoS vulnerability with patch available warrants evaluation.
signalsnew advisory published · high severity rating · known CVE identifier assigned · patched version available (3.3.4) · mistune is a markdown parser in Python dependency trees
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)