{"id":"CVE-2026-59922","published":"2026-07-08T16:12:00Z","modified":"2026-07-09T14:40:22Z","title":"Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers…","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a run of closed tilde, equals-sign, or caret marker pairs around a character causes quadratic work in src/mistune/plugins/formatting.py when the strikethrough, mark, or insert plugin scans for matching markers from each possible start position, allowing denial of service through CPU exhaustion. 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.51817,"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-c8j7-8cv4-2xmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lepture/mistune/commit/96d0f57f8fe9eeb06bb4cff521962a27d7c402e7","tags":["x_refsource_MISC"]},{"url":"https://github.com/lepture/mistune/releases/tag/v3.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.36},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T14:39:49.792478Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-c8j7-8cv4-2xmq","PYSEC-2026-2210"],"provenance":"source"}],"summary":{"text":"Mistune, a Python Markdown parser, has a flaw in the strikethrough, mark, and insert plugins of its formatting module (src/mistune/plugins/formatting.py) that causes quadratic-time parsing when handling long runs of closed tilde, equals-sign, or caret marker pairs. An attacker who can get the parser to process crafted Markdown input, with no authentication or user interaction required over the network, can exhaust CPU resources and cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:16Z"},"euvd":{"id":"EUVD-2026-42329","exploited":false,"provenance":"source"}}