# CVE-2026-59922: Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert)

- 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.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:12:00.545Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-c8j7-8cv4-2xmq, PYSEC-2026-2210
- Weaknesses: CWE-407, 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, a run of closed tilde, equals-sign, or caret marker pairs around a character causes quadratic work in src/mistune/plugins/formatting.py when the strikethrough, mark, or insert plugin scans for matching markers from each possible start position, allowing denial of service through CPU exhaustion. 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-c8j7-8cv4-2xmq> (exploit, evidence, vendor-advisory, web)
- <https://github.com/lepture/mistune/commit/96d0f57f8fe9eeb06bb4cff521962a27d7c402e7> (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-59922> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2210.yaml> (web)

## Sources

- CVE List: [CVE-2026-59922](https://www.cve.org/CVERecord?id=CVE-2026-59922), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-c8j7-8cv4-2xmq](https://github.com/advisories/GHSA-c8j7-8cv4-2xmq), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59922](https://nvd.nist.gov/vuln/detail/CVE-2026-59922), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2210](https://osv.dev/vulnerability/PYSEC-2026-2210), CC-BY-4.0, modified 2026-07-13

---

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