CVE-2026-49851 Mistune: Potential DoS via quadratic-time parsing in parse_link_text
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
34 packages: 4 fixed, 1 partially fixed, 25 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/mistune(Debian 13) | = 3.1.3-1; = 3.1.4-1; = 3.3.4-1; = 3.4.0-1 +1 more | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1787073866(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9:1787073936(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1787073873(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1787073459(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1787073611(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1787073451(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1787073451(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9:1787076778(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1787074331(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1787073913(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1787074078(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1787073929(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1787073605(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1787073546(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1787073717(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1787073713(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1787073593(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| ubuntu/mistune(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/mistune(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/mistune(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/mistune(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| redhat openshift ai | < 1787073451; < 1787073459; < 1787073546; < 1787073593 +15 more | 1787073451, 1787073459, 1787073546, 1787073593, 1787073605, 1787073611, 1787073713, 1787073717, 1787073866, 1787073873, 1787073913, 1787073929, 1787073936, 1787074078, 1787074331, 1787076481, 1787076778, 1787077779 | Partially fixed |
| azure linux python-mistune(Azure Linux 3.0) | < 3.3.0-1 | 3.3.0-1 | Fixed |
| azure linux python-mistune(Azure Linux 4.0) | < 0:3.3.4-2.azl4 | 0:3.3.4-2.azl4 | Fixed |
| debian/mistune(Debian 14) | < 3.3.4-1; = 3.1.3-1; = 3.1.4-1 | 3.3.4-1 | Fixed |
| pypi mistune(PyPI) | < 3.3.0; = 0.1.0; = 0.2.0; = 0.3.0 +48 more | 3.3.0 | Fixed |
… and 4 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mistune(PyPI) | < 3.3.0 | 3.3.0 |
| pypi mistune(PyPI) | = 0.1.0 | No fix listed |
| pypi mistune(PyPI) | = 0.2.0 | No fix listed |
| pypi mistune(PyPI) | = 0.3.0 | No fix listed |
| pypi mistune(PyPI) | = 0.3.1 | No fix listed |
| pypi mistune(PyPI) | = 0.4 | No fix listed |
| pypi mistune(PyPI) | = 0.4.1 | No fix listed |
| pypi mistune(PyPI) | = 0.5 | No fix listed |
| pypi mistune(PyPI) | = 0.5.1 | No fix listed |
| pypi mistune(PyPI) | = 0.6 | No fix listed |
| pypi mistune(PyPI) | = 0.7 | No fix listed |
| pypi mistune(PyPI) | = 0.7.1 | No fix listed |
| pypi mistune(PyPI) | = 0.7.2 | No fix listed |
| pypi mistune(PyPI) | = 0.7.3 | No fix listed |
| pypi mistune(PyPI) | = 0.7.4 | No fix listed |
| pypi mistune(PyPI) | = 0.8 | No fix listed |
| pypi mistune(PyPI) | = 0.8.1 | No fix listed |
| pypi mistune(PyPI) | = 0.8.2 | No fix listed |
| pypi mistune(PyPI) | = 0.8.3 | No fix listed |
| pypi mistune(PyPI) | = 0.8.4 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0a1 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0a2 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0a3 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0a4 | No fix listed |
Show 84 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mistune(PyPI) | = 2.0.0a5 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0a6 | No fix listed |
| pypi mistune(PyPI) | = 2.0.0rc1 | No fix listed |
| pypi mistune(PyPI) | = 2.0.1 | No fix listed |
| pypi mistune(PyPI) | = 2.0.2 | No fix listed |
| pypi mistune(PyPI) | = 2.0.3 | No fix listed |
| pypi mistune(PyPI) | = 2.0.4 | No fix listed |
| pypi mistune(PyPI) | = 2.0.5 | No fix listed |
| pypi mistune(PyPI) | = 2.1.0 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0a1 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0a2 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0a3 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0rc1 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0rc2 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0rc3 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0rc4 | No fix listed |
| pypi mistune(PyPI) | = 3.0.0rc5 | No fix listed |
| pypi mistune(PyPI) | = 3.0.1 | No fix listed |
| pypi mistune(PyPI) | = 3.0.2 | No fix listed |
| pypi mistune(PyPI) | = 3.1.0 | No fix listed |
| pypi mistune(PyPI) | = 3.1.1 | No fix listed |
| pypi mistune(PyPI) | = 3.1.2 | No fix listed |
| pypi mistune(PyPI) | = 3.1.3 | No fix listed |
| pypi mistune(PyPI) | = 3.1.4 | No fix listed |
| pypi mistune(PyPI) | = 3.2.0 | No fix listed |
| pypi mistune(PyPI) | = 3.2.1 | No fix listed |
| lepture mistune | = < 3.3.0 | No fix listed |
| redhat openshift ai | < 1787073866 | 1787073866 |
| redhat openshift ai | < 1787073936 | 1787073936 |
| redhat openshift ai | < 1787073873 | 1787073873 |
| redhat openshift ai | < 1787073459 | 1787073459 |
| redhat openshift ai | < 1787073611 | 1787073611 |
| redhat openshift ai | < 1787073451 | 1787073451 |
| redhat openshift ai | < 1787076778 | 1787076778 |
| redhat openshift ai | < 1787077779 | 1787077779 |
| redhat openshift ai | < 1787076481 | 1787076481 |
| redhat openshift ai | < 1787074331 | 1787074331 |
| redhat openshift ai | < 1787073913 | 1787073913 |
| redhat openshift ai | < 1787074078 | 1787074078 |
| redhat openshift ai | < 1787073929 | 1787073929 |
| redhat openshift ai | < 1787073605 | 1787073605 |
| redhat openshift ai | < 1787073546 | 1787073546 |
| redhat openshift ai | < 1787073717 | 1787073717 |
| redhat openshift ai | < 1787073713 | 1787073713 |
| redhat openshift ai | < 1787073593 | 1787073593 |
| redhat migration toolkit applications | = 8 | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| redhat openshift | = 4 | No fix listed |
| redhat satellite | = 6 | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1787073866(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9:1787073936(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1787073873(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1787073459(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1787073611(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1787073451(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1787073451(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9:1787076778(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1787074331(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1787073913(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1787074078(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1787073929(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1787073605(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1787073546(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1787073717(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1787073713(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1787073593(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| ubuntu/mistune(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mistune(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/mistune(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/mistune(Ubuntu:26.10) | All versions | No fix listed |
| debian/mistune(Debian:14) | < 3.3.4-1 | 3.3.4-1 |
| debian/mistune(Debian:13) | All versions | No fix listed |
| debian/mistune(Debian:13) | = 3.1.3-1 | No fix listed |
| debian/mistune(Debian:13) | = 3.1.4-1 | No fix listed |
| debian/mistune(Debian:13) | = 3.3.4-1 | No fix listed |
| debian/mistune(Debian:13) | = 3.4.0-1 | No fix listed |
| debian/mistune(Debian:14) | = 3.1.3-1 | No fix listed |
| debian/mistune(Debian:14) | = 3.1.4-1 | No fix listed |
| azure linux python-mistune(Azure Linux:3.0) | < 3.3.0-1 | 3.3.0-1 |
| azure linux python-mistune(Azure Linux:4.0) | < 0:3.3.4-2.azl4 | 0:3.3.4-2.azl4 |
References
- https://github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96p exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2492304 issue-tracking
- github.com product
- security.access.redhat.com
- pypi.org product
- github.com vendor-advisory
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- RHSA-2026:60520 patch vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2026-49851 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-39007 third-party-advisory