CVE-2026-7210
9.8 CRITICAL`xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML d...
Published: 2026-05-11 · Last updated: 2026-06-10
Severity and scoring
- CVSS
- 9.8 CRITICAL
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CWE
- CWE-331
Affected products
| Vendor | Product |
|---|---|
| python | python |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-7210
- [Other]https://github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4
- [Other]https://github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566
- [Other]https://github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a
- [Other]https://github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f
- [Other]https://github.com/python/cpython/issues/149018
- [Patch]https://github.com/python/cpython/pull/149023
- [Other]https://mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/
- [Other]http://www.openwall.com/lists/oss-security/2026/05/11/13
- [Other]http://www.openwall.com/lists/oss-security/2026/05/11/8
Related CVEs
Same vendor
- CVE-2026-3087 — If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\...`) then the archive will be... (7.5 HIGH)
- CVE-2026-6019 — http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context (6.1 MEDIUM)
- CVE-2026-4224 — When an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content mo... (7.5 HIGH)
- CVE-2026-3644 — The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete (7.5 HIGH)
- CVE-2025-13462 — The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member suc... (9.8 CRITICAL)
Same CWE
- CVE-2026-46473 — Authen::TOTP versions before 0.1.1 for Perl generate secrets using rand (7.5 HIGH)
- CVE-2026-8700 — Crypt::DSA versions before 1.20 for Perl generate seeds using rand (7.3 HIGH)
- CVE-2026-46474 — Trog::TOTP versions before 1.006 for Perl generate secrets using rand (7.5 HIGH)
- CVE-2026-42155 — Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Magento Community Edition e-com...
- CVE-2025-14972 — * Countermeasures for DPA within SYMCRYPTO engine on SixG301xxx devices are not sufficiently random and will eventually repeat