CVE-2026-15308·Python vulnerability
The incremental HTML parser (html.parser.HTMLParser) allows for CPU denial-of-service through repeated unterminated markup declarations when processing uncontrolled data.
- Severity
- high
- Software
- Python
- Fixed in
- 3.14.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.64% — higher than 50% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-15308 scores 7.5 on CVSS, so a successful attack would be serious — but at 0.64%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 3.14.0
Until: 3.14.7
Fixed in: 3.14.7
How to fix this CVE
Update Python to version 3.14.7 or later to resolve a denial-of-service vulnerability in the HTML parser that can be triggered by maliciously crafted markup. Organizations running Python 3.14.0 through 3.14.6 should prioritize this update, especially if their applications parse untrusted HTML content. Verify the update using `python3 --version` after installation.
sudo dnf update python3Defensia detects this vulnerability
How to check if you are affected
- Run `python3 --version` to check the currently installed Python version; versions 3.14.0–3.14.6 are vulnerable.
- Verify if your application uses `html.parser.HTMLParser` by searching source code for `from html.parser import HTMLParser` or `import html.parser`.
- Monitor system CPU usage for sustained high consumption during periods when untrusted HTML is being processed; check with `top` or `htop` filtered by Python processes.
- After patching, re-run `python3 --version` and confirm the version is 3.14.7 or higher; test HTML parsing with a sample malformed markup string to ensure normal operation.
FAQ
What is CVE-2026-15308?
CVE-2026-15308 is a denial-of-service vulnerability in Python's built-in HTML parser that can consume excessive CPU resources when processing specially crafted HTML containing repeated unterminated markup declarations. An attacker can exhaust server CPU by sending malicious HTML payloads to applications that parse untrusted input.
Is CVE-2026-15308 being actively exploited?
No, CVE-2026-15308 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available, though the attack method is straightforward for anyone with knowledge of the vulnerability.
What versions of Python are affected by CVE-2026-15308?
Python versions 3.14.0 through 3.14.6 are vulnerable; Python 3.14.7 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-15308?
Run `python3 --version` on the command line; if the version falls between 3.14.0 and 3.14.6 (inclusive), your system is vulnerable and requires an immediate update.
Does Defensia detect CVE-2026-15308?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Python is installed on a monitored server, CVE-2026-15308 will appear in your dashboard with remediation steps.
Related Python CVEs
References
- https://github.com/python/cpython/commit/07efb08123ba9367a7107325adb9d5626dca1ca9
- https://github.com/python/cpython/commit/1e7956f1a722df9aabc509c30f8fbdc3a2b4fdc7
- https://github.com/python/cpython/commit/785df8f743800661961528970f8598edcd291c14
- https://github.com/python/cpython/commit/7933f4bf7131aa4140750f9404f5de0aa2969ced
- https://github.com/python/cpython/commit/bcf98ddbc40ec9b3ee87da0124a5660b19b7e606
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-15308. Free for 1 server.
Get started free