High severity7.5NVD Advisory· Published Jun 24, 2026· Updated Jul 15, 2026
CVE-2026-49851
CVE-2026-49851
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mistunePyPI | < 3.3.0 | 3.3.0 |
Affected products
10- Range: <3.3.0
- osv-coords8 versionspkg:apk/chainguard/jupyter-base-notebookpkg:apk/chainguard/kubeflow-pipelines-visualization-serverpkg:apk/chainguard/tensorflow-cpu-jupyterpkg:apk/wolfi/jupyter-base-notebookpkg:apk/wolfi/kubeflow-pipelines-visualization-serverpkg:apk/wolfi/tensorflow-cpu-jupyterpkg:rpm/opensuse/python-mistune&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-mistune&distro=openSUSE%20Tumbleweed
< 7.6.0-r1+ 7 more
- (no CPE)range: < 7.6.0-r1
- (no CPE)range: < 2.16.1-r8
- (no CPE)range: < 2.21.0-r7
- (no CPE)range: < 7.6.0-r1
- (no CPE)range: < 2.16.1-r8
- (no CPE)range: < 2.21.0-r7
- (no CPE)range: < 3.1.3-160000.4.1
- (no CPE)range: < 3.3.2-1.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-qcq2-496w-v96pghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-49851ghsaADVISORY
- access.redhat.com/security/cve/CVE-2026-49851nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96pnvdWEB
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.jsonnvdWEB
News mentions
0No linked articles in our index yet.