CVE-2026-97698 Details
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.
A denial-of-service vulnerability has been identified in the Mistune Markdown parser for Python, affecting versions prior to 3.3.4. The issue arises in the 'parse_link_href' function, which performs an unbounded parenthesis-balancing scan to the end of the document for each unmatched opening parenthesis encountered through an empty link label. This flaw allows for quadratic CPU consumption, with a worker reaching 100% utilization for an extended period, when untrusted Markdown is rendered using the default HTML renderer without any plugins.
Users are advised to upgrade to Mistune version 3.3.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 17, 2026CISA-ADP
Assessed Nov 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lepture/mistune/security/advisories/GHSA-phmp-hrw4-r36r | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90 | [email protected] | Source CodeVendor |
| https://github.com/lepture/mistune/releases/tag/v3.3.4 | [email protected] | Release NotesVendor |
| https://github.com/lepture/mistune/security/advisories/GHSA-phmp-hrw4-r36r | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-407 | Inefficient Algorithmic Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Mistune | <= 3.3.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 17, 2026 | New CVE Received | [email protected] |
| Nov 17, 2026 | CVE Modified | CISA-ADP |
Volerion