{"id":"CVE-2026-97698","aliases":["GHSA-phmp-hrw4-r36r"],"title":"Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links","originalDescription":"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.","severity":{"cvss":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00591,"percentile":0.49716},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"mistune","range":"< 3.3.4","fixed":"3.3.4"},{"ecosystem":"PyPI","name":"mistune","range":">=0, <3.3.4","fixed":"3.3.4"}],"references":[{"url":"https://github.com/lepture/mistune/security/advisories/GHSA-phmp-hrw4-r36r","type":"x_refsource_CONFIRM"},{"url":"https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90","type":"x_refsource_MISC"},{"url":"https://github.com/lepture/mistune/releases/tag/v3.3.4","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97698.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97698","type":"advisory"},{"url":"https://github.com/advisories/GHSA-phmp-hrw4-r36r","type":"other"},{"url":"https://github.com/lepture/mistune","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-17T20:42:38.680Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97698","license":"NVD terms of use","firstSeenAt":"2026-11-17T20:42:38.680Z"},{"name":"osv","at":"2026-11-19T23:23:25.927Z","url":"https://osv.dev/vulnerability/GHSA-phmp-hrw4-r36r","license":"CC-BY 4.0","firstSeenAt":"2026-11-17T22:21:51.838Z"},{"name":"ghsa","at":"2026-12-06T23:40:48.564Z","url":"https://github.com/advisories/GHSA-phmp-hrw4-r36r","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T22:51:35.640Z"},{"name":"cvelistV5","at":"2026-11-19T21:13:57.826Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-97698","license":"CVE Terms of Use","firstSeenAt":"2026-11-17T19:34:00.805Z"}],"firstSeenAt":"2026-11-17T19:34:00.805Z","publishedAt":"2026-11-17T19:20:09.915Z","modifiedAt":"2026-11-19T23:00:36.648Z"}