CVE-2026-7210
The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection
CVSS Score
0.0
EPSS Score
0.1%
EPSS Percentile
25th
`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.
| CWE | CWE-331 |
| Vendor | python software foundation |
| Product | cpython |
| Published | May 11, 2026 |
| Last Updated | Jun 10, 2026 |
Stay Ahead of the Next One
Get instant alerts for python software foundation cpython
Be the first to know when new unknown vulnerabilities affecting python software foundation cpython are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Python Software Foundation / CPython
0 < 3.13.14 3.14.0 < 3.14.6 3.15.0a1 < 3.15.0b2
References
mail.python.org: https://mail.python.org/archives/list/[email protected]/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/ github.com: https://github.com/python/cpython/pull/149023 github.com: https://github.com/python/cpython/issues/149018 github.com: https://github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4 github.com: https://github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566 github.com: https://github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a github.com: https://github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f openwall.com: http://www.openwall.com/lists/oss-security/2026/05/11/8 openwall.com: http://www.openwall.com/lists/oss-security/2026/05/11/13
Credits
Stan Ulbrych (https://github.com/StanFromIreland) Gregory P. Smith (https://github.com/gpshead)