Vulnerability · Published May 11, 2026 · Assigned by PSF
CVE-2026-7210The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection
Medium 6.3
In plain English
A medium-severity security flaw in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
`xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or later and applying this patch.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | python3 | 3.12.14-r0 | ALPINE-CVE-2026-7210 |
| Alpine:v3.22 | python3 | 3.12.14-r0 | ALPINE-CVE-2026-7210 |
| Alpine:v3.23 | python3 | 3.12.14-r0 | ALPINE-CVE-2026-7210 |
| Alpine:v3.24 | python3 | 3.14.7-r0 | ALPINE-CVE-2026-7210 |
| Debian:12 | python3.11 | no fix listed | DEBIAN-CVE-2026-7210 |
| Debian:13 | python3.13 | no fix listed | DEBIAN-CVE-2026-7210 |
| Debian:14 | python3.14 | 3.14.6-1 | DEBIAN-CVE-2026-7210 |
| Ubuntu:22.04:LTS | python3.10 | no fix listed | UBUNTU-CVE-2026-7210 |
| Ubuntu:24.04:LTS | python3.12 | no fix listed | UBUNTU-CVE-2026-7210 |
| Ubuntu:25.10 | python3.13 | no fix listed | UBUNTU-CVE-2026-7210 |
| Ubuntu:25.10 | python3.14 | no fix listed | UBUNTU-CVE-2026-7210 |
| Ubuntu:26.04:LTS | python3.14 | no fix listed | UBUNTU-CVE-2026-7210 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.10.223.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.143.14.0 – before 3.14.63.15.0a1 – before 3.15.0b2 |
Weakness: CWE-331 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References
- https://mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/ vendor-advisory
- https://github.com/python/cpython/pull/149023 patch
- https://github.com/python/cpython/issues/149018 issue-tracking
- https://github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4 patch
- https://github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566 patch
- https://github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a patch
- https://github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f patch
- https://github.com/python/cpython/commit/e37df2a6a71d6538698e2d3188a7c345b827640b patch
- https://github.com/python/cpython/commit/cbaecf9f16da611a646d507c1cbca265c588fc56 patch
- https://github.com/python/cpython/commit/ea70712d1a8508e14e9677d44f838dab04dc0286 patch
- http://www.openwall.com/lists/oss-security/2026/05/11/8
- http://www.openwall.com/lists/oss-security/2026/05/11/13