CVE-2026-59927
published medium CVSS 3.1 · 5.3Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lepture | — | mistune< 3.3.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | python313-mistunenoarch | Advisory build | 3.1.3-160000.5.1 | SUSE-SU-2026:22655-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-mistunenoarch | Advisory build | 3.1.3-160000.5.1 | OPENSUSE-SU-2026:21339-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lepture | mistune | < 3.3.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-674 CWE-674: Uncontrolled Recursion
- CWE-755 CWE-755: Improper Handling of Exceptional Conditions
References
3Provider assertions
2GitHub_M · cna
Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d616b241febdff8b47c1beae9ab8567b612932e536d90a6e1c003dfc9b1b02a8
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record