{
  "id": "CVE-2026-7210",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-7210",
  "published_at": "2026-05-11T17:19:09.784Z",
  "title": "The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-331",
  "cpes": [
    "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha8:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:beta1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.3,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.10.22",
          "\u003e= 3.11.0, \u003c 3.11.16",
          "\u003e= 3.12.0, \u003c 3.12.14",
          "\u003e= 3.13.0, \u003c 3.13.14",
          "\u003e= 3.14.0, \u003c 3.14.6",
          "\u003e= 3.15.0a1, \u003c 3.15.0b2"
        ],
        "fixed_in": [
          "3.10.22",
          "3.11.16",
          "3.12.14",
          "3.13.14",
          "3.14.6",
          "3.15.0b2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.10.22 or 3.11.16 or 3.12.14 or 3.13.14 or 3.14.6 or 3.15.0b2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/149023"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/e37df2a6a71d6538698e2d3188a7c345b827640b"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/cbaecf9f16da611a646d507c1cbca265c588fc56"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
