# CVE-2026-59928: Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions

- 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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:23:21.000Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-ffq3-xpv3-j92q, PYSEC-2026-2216
- Weaknesses: CWE-407, CWE-1333
- 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.0, a Markdown document containing many repeated or distinct reference-link definitions causes quadratic work in src/mistune/block_parser.py and the ref_links environment dictionary handling, allowing denial of service through CPU exhaustion. This issue is fixed in version 3.3.0.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.3.0
- mistune (PyPI): before 3.3.0
- mistune_project mistune: before 3.3.0

## 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`
- PyPA Advisory Database: 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-ffq3-xpv3-j92q> (exploit, evidence, third-party-advisory, web)
- <https://github.com/lepture/mistune/commit/2b04d7ba341c16ac78fe82d3076bdd5c3de87c69> (fix, patch, web)
- <https://github.com/lepture/mistune/releases/tag/v3.3.0> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59928> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2216.yaml> (web)

## Sources

- CVE List: [CVE-2026-59928](https://www.cve.org/CVERecord?id=CVE-2026-59928), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-ffq3-xpv3-j92q](https://github.com/advisories/GHSA-ffq3-xpv3-j92q), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59928](https://nvd.nist.gov/vuln/detail/CVE-2026-59928), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2216](https://osv.dev/vulnerability/PYSEC-2026-2216), CC-BY-4.0, modified 2026-07-13

---

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