{"id":"CVE-2026-49851","published":"2026-06-24T17:05:33Z","modified":"2026-08-28T12:04:23Z","title":"Mistune: Potential DoS via quadratic-time parsing in parse_link_text","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. When parsing Markdown containing many consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior. An attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload. This vulnerability is fixed in 3.3.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.44584,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"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-qcq2-496w-v96p","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-49851","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2492304","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:60520","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-25T19:55:32.245725Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-qcq2-496w-v96p","PYSEC-2026-2652"],"provenance":"source"}],"summary":{"text":"The mistune Markdown parser, a Python library, has a flaw in its parse_link_text component: before version 3.3.0, it scans input repeatedly with a regex inside a loop, so parsing runs in roughly quadratic time on inputs containing many consecutive \"[\" characters. An attacker who can supply Markdown for the parser to process, with no authentication or user interaction required over the network, can use a very small payload to drive CPU usage high enough to cause denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:32Z"},"euvd":{"id":"EUVD-2026-39007","exploited":false,"provenance":"source"}}