
CVE catalog
CVE-2026-49851
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
- Severity
- High · CVSS 8.7
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.63% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | mistune | sid | 3.4.0-1 | fixed |
| Debian | mistune | forky | 3.1.4-1 | vulnerable |
| Debian | mistune | trixie | 3.1.3-1 | vulnerable |
| Debian | mistune | bookworm | 2.0.4-1 | not affected |
| PyPI | mistune | Not reported | 3.3.0 | fixed |
| Suse | python-mistune | linux enterprise server 16.0 | 3.1.3-160000.4.1 | fixed |
| Suse | python-mistune | linux enterprise server for sap applications 16.0 | 3.1.3-160000.4.1 | fixed |
| Opensuse | python-mistune | leap 16.0 | 3.1.3-160000.4.1 | fixed |
| Opensuse | python-mistune | tumbleweed | 3.3.2-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | mistune | source | sid | 3.3.4-1 | not yet assigned | Not reported | [1141770] |
| Debian | mistune | source | forky | (unfixed) | not yet assigned | Not reported | [1141770] |
| Debian | mistune | source | trixie | (unfixed) | not yet assigned | Not reported | [1141770] |
| Debian | mistune | source | bookworm | Not affected | unimportant | Not reported | [1141770] |
| PyPI | mistune | PyPI | Not reported | 3.3.0 | Not reported | GHSA-QCQ2-496W-V96P | Not reported |
| Suse | python-mistune | rpm | linux enterprise server 16.0 | 3.1.3-160000.4.1 | Not reported | SUSE-SU-2026:22495-1 | Not reported |
| Suse | python-mistune | rpm | linux enterprise server for sap applications 16.0 | 3.1.3-160000.4.1 | Not reported | SUSE-SU-2026:22495-1 | Not reported |
| Opensuse | python-mistune | rpm | leap 16.0 | 3.1.3-160000.4.1 | Not reported | OPENSUSE-SU-2026:21191-1 | Not reported |
| Opensuse | python-mistune | rpm | tumbleweed | 3.3.2-1.1 | Not reported | OPENSUSE-SU-2026:11180-1 | Not reported |
Notes
[trixie] mistune: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [python3-mistune]Affected
Source package: [mistune]
Details (2)
3.1.3-1· all · trixieAffected
nvd · mistune · debian · 13
3.1.3-1· all · trixieAffected
nvd · mistune · debian · 13
[openSUSE Tumbleweed]
- [python313-mistune]Unknown
Source package: [python-mistune]
Details (1)
3.3.4-1.1· noarch · tumbleweedUnknown · Fixed:
3.3.2-1.1Version impact unknown
nvd · python-mistune · opensuse · tumbleweed
- [python314-mistune]Unknown
Source package: [python-mistune]
Details (1)
3.3.4-1.1· noarch · tumbleweedUnknown · Fixed:
3.3.2-1.1Version impact unknown
nvd · python-mistune · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [python3-mistune]Not affected
Source package: [mistune]
Details (2)
2.0.4-1· all · bookwormNot affected
nvd · mistune · debian · bookworm
2.0.4-1· all · bookwormNot affected
nvd · mistune · debian · bookworm
Observed:
References
- [https://access.redhat.com/errata/RHSA-2026:60520]
- [https://access.redhat.com/security/cve/CVE-2026-49851]
- [https://bugzilla.redhat.com/show_bug.cgi?id=2492304]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11180-1.json]
- [https://github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96p]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-49851]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-49851]
- [https://osv.dev/vulnerability/GHSA-qcq2-496w-v96p]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22495-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11180-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:21191-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-49851]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]