# CVE-2026-7210: The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.35% (percentile 72, 2026-11-26)
- **CWE:** CWE-331
- **Published:** 2026-05-11T17:19:09.784Z
- **Modified:** 2026-10-26T18:10:00.173Z

## Who should check

- Anyone running Python Software Foundation CPython \< 3.10.22; \>= 3.11.0, \< 3.11.16; \>= 3.12.0, \< 3.12.14; \>= 3.13.0, \< 3.13.14; \>= 3.14.0, \< 3.14.6; \>= 3.15.0a1, \< 3.15.0b2

## 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 and fixed versions

- Python Software Foundation CPython: \< 3.10.22; \>= 3.11.0, \< 3.11.16; \>= 3.12.0, \< 3.12.14; \>= 3.13.0, \< 3.13.14; \>= 3.14.0, \< 3.14.6; \>= 3.15.0a1, \< 3.15.0b2 (cvelist)

## Mitigation

- Upgrade CPython to 3.15.0b2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-7210. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-7210.md
Affected: Python Software Foundation CPython < 3.10.22; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.14; >= 3.14.0, < 3.14.6; >= 3.15.0a1, < 3.15.0b2
Fixed in: Python Software Foundation CPython 3.10.22, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.14, Python Software Foundation CPython 3.14.6, Python Software Foundation CPython 3.15.0b2

Steps:
1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-7210 being exploited?

There is no confirmed exploitation: CVE-2026-7210 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-7210?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-7210?

Python Software Foundation CPython \< 3.10.22; \>= 3.11.0, \< 3.11.16; \>= 3.12.0, \< 3.12.14; \>= 3.13.0, \< 3.13.14; \>= 3.14.0, \< 3.14.6; \>= 3.15.0a1, \< 3.15.0b2.

### Is there a fix for CVE-2026-7210?

Yes. Fixed in Python Software Foundation CPython 3.10.22, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.14, Python Software Foundation CPython 3.14.6, Python Software Foundation CPython 3.15.0b2. Upgrade CPython to 3.15.0b2 or later.

### How do I check if I'm affected by CVE-2026-7210?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/>
- patch: <https://github.com/python/cpython/pull/149023>
- patch: <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>
- other: <https://github.com/python/cpython/issues/149018>
- other: <http://www.openwall.com/lists/oss-security/2026/05/11/8>
- other: <http://www.openwall.com/lists/oss-security/2026/05/11/13>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-7210>

HTML: <https://flawdb.com/CVE-2026-7210> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-7210>
