CVE-2026-59922
HIGH 7.5CVSS 3.1Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert)
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333CWE-407
- Also known as
- GHSA-c8j7-8cv4-2xmqPYSEC-2026-2210
- Sources
- NVDJSONOSV GHSA-c8j7-8cv4-2xmqJSONOSV PYSEC-2026-2210JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mistune_project | mistunecpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* |
< 3.3.0 | 3.3.0 |
| OSV | PyPI | mistune | < 3.3.0 | 3.3.0 |
References
- https://github.com/lepture/mistune/commit/96d0f57f8fe9eeb06bb4cff521962a27d7c402e7 · Patch, WEB, FIX
- https://github.com/lepture/mistune/releases/tag/v3.3.0 · Release Notes, WEB, ADVISORY
- https://github.com/lepture/mistune/security/advisories/GHSA-c8j7-8cv4-2xmq · Exploit, Vendor Advisory, WEB, EVIDENCE
- 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
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jul 2026)