# CVE-2026-97698: Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-17T19:20:09.915Z
- Modified: 2026-11-19T23:00:36.648Z
- Also known as: GHSA-phmp-hrw4-r36r
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.3.4
- mistune (PyPI): before 3.3.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-phmp-hrw4-r36r> (exploit, web)
- <https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90> (web)
- <https://github.com/lepture/mistune/releases/tag/v3.3.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-97698> (advisory)
- <https://github.com/lepture/mistune> (package)

## Sources

- CVE List: [CVE-2026-97698](https://www.cve.org/CVERecord?id=CVE-2026-97698), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-phmp-hrw4-r36r](https://github.com/advisories/GHSA-phmp-hrw4-r36r), CC-BY-4.0, modified 2026-11-19
- NVD: [CVE-2026-97698](https://nvd.nist.gov/vuln/detail/CVE-2026-97698), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-97698 · Whole record: https://cve.day/CVE-2026-97698.json · Rebuilt by cve.day 2026-11-25T22:59:51.085Z
