Skip to content
6.3 Medium

CVE-2026-7210 `xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which…

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 products and versions

Product Affected versions Fixed in
CPython 3.15 3.15.0a1 → < 3.15.0b2 3.15.0b2
CPython 3.14 3.14.0 → < 3.14.6 3.14.6
CPython 3.13 3.13.0 → < 3.13.14 3.13.14
CPython 3.12 3.12.0 → < 3.12.14 3.12.14
CPython 3.11 3.11.0 → < 3.11.16 3.11.16
CPython 3.10 earliest → < 3.10.22 3.10.22
The 80 CVEs of CPython →
Track this CVE