# CVE-2026-59927: Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files

- Severity: Medium 5.3 (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:L`
- 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.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:24:37.985Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-8mpj-m6qm-5qr8, PYSEC-2026-2215
- Weaknesses: CWE-674, CWE-755
- 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.0, the Include directive in src/mistune/directives/include.py detects only direct self-includes and not indirect cycles, allowing two markdown files that include each other to trigger unbounded recursion, raise RecursionError, and crash the rendering request. 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 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-8mpj-m6qm-5qr8> (exploit, evidence, third-party-advisory, web)
- <https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993> (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-59927> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2215.yaml> (web)

## Sources

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

---

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