CVE-2026-59927 Details
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.
A denial-of-service vulnerability has been identified in the Mistune Markdown parser, prior to version 3.3.0. The issue arises in the Include directive, which fails to detect indirect recursion cycles between Markdown files. This oversight allows two files that include each other to cause unbounded recursion, leading to a RecursionError and crashing the rendering process. The vulnerability is present in versions of Mistune through 3.2.1.
Users can upgrade to Mistune version 3.3.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993 | [email protected] | Patch |
| https://github.com/lepture/mistune/releases/tag/v3.3.0 | [email protected] | Release Notes |
| https://github.com/lepture/mistune/security/advisories/GHSA-8mpj-m6qm-5qr8 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
| CWE-674 | Uncontrolled Recursion | [email protected] |
| CWE-755 | Improper Handling of Exceptional Conditions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mistune project mistune | < 3.3.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 9, 2026 | Initial Analysis | [email protected] |
| Jul 8, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |