# CVE-2026-59925: inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.35%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:18:43.786Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-4j32-57v6-6g45, PYSEC-2026-2213
- Weaknesses: CWE-407, CWE-1333
- SSVC (CISA-ADP): exploitation none, 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, long sequences of well-formed double-asterisk or triple-asterisk emphasis pairs around a character cause quadratic work in src/mistune/inline_parser.py because the parser scans forward for matching close markers from every potential opening run, allowing denial of service in default Mistune parsing. This issue is fixed in version 3.3.0.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.3.0
- mistune (PyPI): before 3.3.0
- mistune_project mistune: before 3.3.0

## Every score

- GitHub_M: 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`
- 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`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-4j32-57v6-6g45> (exploit, evidence, vendor-advisory, web)
- <https://github.com/lepture/mistune/commit/5de41fb8e527004dbc363e047a3c380c9288c74f> (fix, patch, web)
- <https://github.com/lepture/mistune/releases/tag/v3.3.0> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59925> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2213.yaml> (web)

## Sources

- CVE List: [CVE-2026-59925](https://www.cve.org/CVERecord?id=CVE-2026-59925), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-4j32-57v6-6g45](https://github.com/advisories/GHSA-4j32-57v6-6g45), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59925](https://nvd.nist.gov/vuln/detail/CVE-2026-59925), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2213](https://osv.dev/vulnerability/PYSEC-2026-2213), CC-BY-4.0, modified 2026-07-13

---

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