Quick answers
- Is CVE-2026-15308 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-15308 being exploited in the wild.
- How severe is CVE-2026-15308?
- Informational severity, with a CVSS score of 10, published 9 July 2026.
- Which products and versions are affected?
- Python Software Foundation CPython < 3.16.0.
- Is there a fix for CVE-2026-15308?
- A patch was published on 2026-07-04: Fix merged into CPython main branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-15308 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-15308?
- Check whether you run Python Software Foundation CPython at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The incremental HTML parser (html.parser.HTMLParser) in CPython contains a flaw where processing uncontrolled data with repeated unterminated markup declarations leads to quadratic complexity. When an unterminated construct, such as a tag or comment, spans multiple feed() calls, the parser repeatedly rescans the growing buffer and performs inefficient string concatenations. An unauthenticated remote attacker can exploit this by sending malicious HTML fragments, causing excessive CPU consumption and a Denial of Service. The fix involves accumulating data in a list and only joining/parsing once a sufficient threshold is met to avoid the quadratic overhead. Patches have been backported to versions 3.10 through 3.15.
Affected products
- Python Software Foundation CPython < 3.16.0
Timeline
- 2026-07-04: disclosed: Issue reported and PR opened on GitHub
- 2026-07-04: patched: Fix merged into CPython main branch
- 2026-07-09: advisory: CVE-2026-15308 published