Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.8%top 47%

CVE-2026-7210: CWE-331 Insufficient entropy in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2026-7210cvecve-2026-7210cwe-331
Published: 05/11/2026 (05/11/2026, 17:19:09 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

CVE-2026-7210 is a medium severity vulnerability in CPython's xml.parsers.expat and xml.etree.ElementTree modules, caused by insufficient entropy used for Expat hash-flooding protection. This weakness allows a crafted XML document to trigger hash flooding, potentially impacting performance. Fully mitigating the issue requires updating libexpat to version 2.8.0 or later and applying a corresponding patch to CPython. The affected CPython versions are 3.14.0, 3.15.0a1, and 3.15.0.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

cpython
pkg:pypi/cpython
Affected versions
=3.14.0=3.15.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/29/2026, 22:49:19 UTC

Technical Analysis

The vulnerability CVE-2026-7210 in CPython arises from insufficient entropy in the hash-flooding protection mechanism of the xml.parsers.expat and xml.etree.ElementTree modules. This allows an attacker to craft XML documents that can trigger hash flooding, which may degrade performance or cause denial of service. Complete mitigation requires both upgrading the underlying libexpat library to version 2.8.0 or later and applying a patch to CPython itself. The vulnerability affects CPython versions 3.14.0, 3.15.0a1, and 3.15.0. No official remediation level or patch links are provided in the advisory.

Potential Impact

The vulnerability enables an attacker to cause hash flooding via crafted XML documents, potentially leading to performance degradation or denial of service in applications using the affected CPython XML parsing modules. There is no indication of privilege escalation, code execution, or data disclosure. The CVSS 4.0 score is 6.3 (medium severity), reflecting network attack vector with high attack complexity and low impact on confidentiality, integrity, and availability.

Mitigation Recommendations

No official patch or remediation level has been confirmed yet. Full mitigation requires updating libexpat to version 2.8.0 or later and applying a patch to CPython. Users should monitor the Python Software Foundation advisories for the release of these updates and apply them promptly once available. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2026-04-27T14:43:40.042Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a021aa7cbff5d861043053d

Added to database: 05/11/2026, 18:06:31 UTC

Last enriched: 06/29/2026, 22:49:19 UTC

Last updated: 07/31/2026, 19:23:00 UTC

Views: 354

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses