CVE-2026-7210: `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...
High CVSS 7.5
- CVE id
- CVE-2026-7210
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
< 3.13.14 >= 3.14.0, < 3.14.6 |
3.13.14, 3.14.6 |
Versions we track that it affects: Python 3.12.16
How to fix it
Upgrade Python to the fixed release of the line you run: 3.13.14, 3.14.6.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2026-7210 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-7210
- Web: https://github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4
- Web: https://github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566
- Web: https://github.com/python/cpython/commit/cbaecf9f16da611a646d507c1cbca265c588fc56
- Web: https://github.com/python/cpython/commit/e37df2a6a71d6538698e2d3188a7c345b827640b
- Web: https://github.com/python/cpython/commit/ea70712d1a8508e14e9677d44f838dab04dc0286
- Web: https://github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a
- Web: https://github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f
- Web: https://github.com/python/cpython/issues/149018
- Web: https://github.com/python/cpython/pull/149023
- Web: https://mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.