CVE-2026-49851
Mistune is a Python Markdown parser with renderers and plugins. …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96p
- access.redhat.com/security/cve/CVE-2026-49851
- bugzilla.redhat.com/show_bug.cgi?id=2492304
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.json
- nvd.nist.gov/vuln/detail/CVE-2026-49851
- github.com/advisories/GHSA-qcq2-496w-v96p
- access.redhat.com/errata/RHSA-2026:60520
- nvd.nist.gov/vuln/detail/CVE-2026-49851
- cve.org/CVERecord?id=CVE-2026-49851
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.