{"id":"CVE-2026-59925","published":"2026-07-08T16:18:43Z","modified":"2026-07-08T19:44:48Z","title":"inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, long sequences of well-formed double-asterisk or triple-asterisk emphasis pairs around a character cause quadratic work in src/mistune/inline_parser.py because the parser scans forward for matching close markers from every potential opening run, allowing denial of service in default Mistune parsing. This issue is fixed in version 3.3.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.45434,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/lepture/mistune/security/advisories/GHSA-4j32-57v6-6g45","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lepture/mistune/commit/5de41fb8e527004dbc363e047a3c380c9288c74f","tags":["x_refsource_MISC"]},{"url":"https://github.com/lepture/mistune/releases/tag/v3.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.09},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-08T19:44:41.353822Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-4j32-57v6-6g45","PYSEC-2026-2213"],"provenance":"source"}],"summary":{"text":"The flaw is in the inline parser component (src/mistune/inline_parser.py) of the mistune Python Markdown parser from lepture: the parser repeatedly scans forward for matching closing markers from each potential opening run, so long sequences of well-formed x or *x* emphasis pairs cause quadratic processing time. An attacker who can submit Markdown text for parsing over the network, with no authentication or user interaction required and under default configuration, can trigger a denial of service by sending such input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:17Z"},"euvd":{"id":"EUVD-2026-42335","exploited":false,"provenance":"source"}}