# CVE-2026-97699: Mistune: Quadratic-time DoS in inline image parsing (precedence_scan) bypasses not-is-image guards

- 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.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-11-17T19:17:47.107Z
- Modified: 2026-11-19T23:00:36.653Z
- Also known as: GHSA-ww7q-mxrj-5ffg
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, 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, inline image parsing sends nested ![ openers through precedence_scan because the no_link_before and _label_contains_link linearization guards are gated by not is_image. In src/mistune/inline_parser.py, each outer image opener can therefore search the remaining image body, while max_image_depth does not apply because the failed scans do not produce image tokens. 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-ww7q-mxrj-5ffg> (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-97699> (advisory)
- <https://github.com/lepture/mistune> (package)

## Sources

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

---

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