CVE-2026-7210 Details
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.
A vulnerability exists in the Python XML parsers `xml.parsers.expat` and `xml.etree.ElementTree` due to insufficient entropy provided for hash-flooding protection. This flaw allows a specially crafted XML document to exploit hash flooding vulnerabilities. The issue arises because `pyexpat` only supplies 4 to 8 bytes of entropy, whereas Expat version 2.8.0 introduced a new function that allows for 16 bytes of entropy, sufficient to protect against such hash-flooding attacks. The vulnerability can be fully mitigated by updating the libexpat library to version 2.8.0 or later and applying a specific patch that has been developed.
To address this vulnerability, update the libexpat library to version 2.8.0 or later. Additionally, apply the patch available in the Python GitHub repository, which modifies the `pyexpat` module to use the `XML_SetHashSalt16Bytes` function when compiled against a version of Expat that supports it.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-331 | Insufficient Entropy | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python python | < 3.13.14 >= 3.14.0, < 3.14.6 3.15.0 alpha1 3.15.0 alpha2 3.15.0 alpha3 3.15.0 alpha4 3.15.0 alpha5 3.15.0 alpha6 3.15.0 alpha7 3.15.0 alpha8 3.15.0 beta1 |
CPE
Remediation
| |
Change History
13 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 14, 2026 | CVE Modified | [email protected] |
| Aug 13, 2026 | CVE Modified | [email protected] |
| Aug 12, 2026 | CVE Modified | [email protected] |
| Jul 27, 2026 | Modified Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | Modified Analysis | [email protected] |
| Jun 10, 2026 | CVE Modified | [email protected] |
| Jun 1, 2026 | Reanalysis | [email protected] |
| May 16, 2026 | Initial Analysis | [email protected] |
| May 11, 2026 | CVE Modified | CVE |
| May 11, 2026 | CVE Modified | CVE |
| May 11, 2026 | New CVE Received | [email protected] |