CVE-2026-97699: Mistune: Quadratic-time DoS in inline image parsing (precedence_scan) bypasses not-is-image guards
Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-ww7q-mxrj-5ffg
Summary
A quadratic-time Denial of Service vulnerability exists in Mistune's inline image parsing due to guards being incorrectly bypassed for image markers. All engineering teams using Mistune prior to version 3.3.4 should upgrade immediately.
Who is affected
Unauthenticated attackers can supply a crafted Markdown payload containing nested image openers, such as '![' repeated with matching closing brackets, to cause high CPU utilization and stall application workers. The flaw affects deployments rendering untrusted markdown input using Mistune versions prior to 3.3.4 without requiring any special plugins.
Exploitability
The vulnerability is remotely exploitable over a network without authentication or user interaction with a high impact on availability. It carries a CVSS base score of 7.5, an EPSS score of 0.007, and is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade PyPI package mistune to version 3.3.4 or later.
How to check your project
- Check project dependency files (e.g., requirements.txt, pyproject.toml, setup.py) to determine if mistune version < 3.3.4 is used.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | mistune |
>= 0, < 3.3.4 | 3.3.4 | python -m pip install 'mistune>=3.3.4' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What causes the vulnerability in Mistune?
Linearizing guards for link paths are gated behind 'not is_image', causing them to be skipped for image openers ('!['), resulting in an O(N²) CPU complexity scan over the image body.
Are plugins required to trigger the Denial of Service?
No, the vulnerability affects the default markdown renderer with no plugins enabled.
What is the fixed version for this vulnerability?
Mistune version 3.3.4 fixes the vulnerability.
Original advisory description
References
- WEB https://github.com/lepture/mistune/security/advisories/GHSA-ww7q-mxrj-5ffg
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-97699
- WEB https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90
- PACKAGE https://github.com/lepture/mistune
- WEB https://github.com/lepture/mistune/releases/tag/v3.3.4
Source records: GHSA-ww7q-mxrj-5ffg (OSV.dev) · EPSS by FIRST, 2026-11-26.