{"id":"CVE-2026-97698","published":"2026-11-17T19:20:09Z","modified":"2026-11-17T19:33:19Z","title":"Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00548,"percentile":0.4678,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/lepture/mistune/security/advisories/GHSA-phmp-hrw4-r36r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90","tags":["x_refsource_MISC"]},{"url":"https://github.com/lepture/mistune/releases/tag/v3.3.4","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":9.36},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-17T19:32:55.649728Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.4"],"patched":["3.3.4"],"from":["GHSA-phmp-hrw4-r36r"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-127355","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-lepture-mistune-cve-2026-76098","parents":[{"from":"CVE-2026-76098","to":"CVE-2026-97698","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mistune","fromFixed":"3.3.3","toFixed":"3.3.4","daysApart":85},{"kind":"same-code","provenance":"machine","files":["src/mistune/inline_parser.py"],"commits":["https://github.com/lepture/mistune/commit/0938fb781d0aded99de801b340ec1f8debeae5b2","https://github.com/lepture/mistune/commit/0938fb781d0aded99de801b340ec1f8debeae5b2","https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90"],"basis":"shared function","functions":["_Delimiter","_process_emphasis_delimiters"]}]}],"packageHistory":[{"cve":"CVE-2026-59929","published":"2026-07-08","fixed":"3.3.0","kev":false},{"cve":"CVE-2026-59930","published":"2026-07-08","fixed":"3.3.0","kev":false},{"cve":"CVE-2026-76098","published":"2026-08-24","fixed":"3.3.3","kev":false},{"cve":"CVE-2026-97698","published":"2026-11-17","fixed":"3.3.4","kev":false},{"cve":"CVE-2026-97699","published":"2026-11-17","fixed":"3.3.4","kev":false}],"package":"PyPI:mistune"}}