{"id":"CVE-2026-59927","published":"2026-07-08T16:24:37Z","modified":"2026-07-08T19:45:20Z","title":"Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of…","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00529,"percentile":0.45677,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"},{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"references":[{"url":"https://github.com/lepture/mistune/security/advisories/GHSA-8mpj-m6qm-5qr8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993","tags":["x_refsource_MISC"]},{"url":"https://github.com/lepture/mistune/releases/tag/v3.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":9.14},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-08T19:45:06.559977Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-8mpj-m6qm-5qr8","PYSEC-2026-2215"],"provenance":"source"}],"summary":{"text":"The Include directive in Mistune, a Python Markdown parser, lives in src/mistune/directives/include.py and only detects direct self-inclusion, so two Markdown files that include each other trigger unbounded recursion. An attacker who can supply Markdown that is rendered by an affected version (prior to 3.3.0) can make two such files reference each other, causing a RecursionError that crashes the rendering request, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:48Z"},"euvd":{"id":"EUVD-2026-42339","exploited":false,"provenance":"source"}}