# CVE-2026-49851: Mistune: Potential DoS via quadratic-time parsing in parse_link_text

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T17:05:33.602Z
- Modified: 2026-10-25T22:10:00.150Z
- Also known as: GHSA-qcq2-496w-v96p, PYSEC-2026-2652
- Weaknesses: CWE-400, CWE-407, CWE-770, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.3.0
- rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9: no versions given (not affected: from 1787073866 before *)
- rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9: no versions given (not affected: from 1787073936 before *)
- rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9: no versions given (not affected: from 1787073873 before *)
- rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9: no versions given (not affected: from 1787073459 before *)
- rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9: no versions given (not affected: from 1787073611 before *)
- rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1787073451 before *)
- rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1787073451 before *)
- rhoai/odh-th06-cpu-torch210-py312-rhel9: no versions given (not affected: from 1787076778 before *)
- rhoai/odh-th06-cuda130-torch210-py312-rhel9: no versions given (not affected: from 1787077779 before *)
- rhoai/odh-th06-rocm64-torch291-py312-rhel9: no versions given (not affected: from 1787076481 before *)
- rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9: no versions given (not affected: from 1787074331 before *)
- rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9: no versions given (not affected: from 1787073913 before *)
- rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9: no versions given (not affected: from 1787074078 before *)
- rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9: no versions given (not affected: from 1787073929 before *)
- rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9: no versions given (not affected: from 1787073605 before *)
- rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9: no versions given (not affected: from 1787073546 before *)
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1787073717 before *)
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1787073713 before *)
- rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9: no versions given (not affected: from 1787073593 before *)
- mta/mta-solution-server-rhel9: no versions given
- rhoai/odh-th06-cpu-torch291-py312-rhel9: no versions given
- rhoai/odh-th06-cuda130-torch291-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- python-mistune: no versions given
- satellite/iop-advisor-engine-rhel9: no versions given
- mistune (PyPI): before 3.3.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96p> (exploit, web)
- <https://access.redhat.com/security/cve/CVE-2026-49851> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2492304> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:60520> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49851> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://pypi.org/project/mistune> (package)
- <https://github.com/advisories/GHSA-qcq2-496w-v96p> (advisory)

## Sources

- CVE List: [CVE-2026-49851](https://www.cve.org/CVERecord?id=CVE-2026-49851), CVE Terms of Use, modified 2026-08-28
- GitHub Advisory Database: [GHSA-qcq2-496w-v96p](https://github.com/advisories/GHSA-qcq2-496w-v96p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49851](https://nvd.nist.gov/vuln/detail/CVE-2026-49851), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2652](https://osv.dev/vulnerability/PYSEC-2026-2652), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-49851 · Whole record: https://cve.day/CVE-2026-49851.json · Rebuilt by cve.day 2026-11-25T22:59:25.715Z
