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…

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

0
Medium
VulnerabilityCVE-2026-7210cvecve-2026-7210cwe-331
Published: Mon May 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 the Python Software Foundation's CPython implementation. The vulnerability arises because the xml. parsers. expat and xml. etree. ElementTree modules use insufficient entropy for hash-flooding protection in the underlying libexpat library. This weakness allows a crafted XML document to trigger hash flooding, potentially impacting performance or availability. Fully mitigating this issue requires updating libexpat to version 2. 8. 0 or later and applying a corresponding patch to CPython.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/11/2026, 18:22:59 UTC

Technical Analysis

The vulnerability CVE-2026-7210 involves insufficient entropy in the hash-flooding protection mechanism used by CPython's xml.parsers.expat and xml.etree.ElementTree modules. This is due to the underlying libexpat library's hash function not using enough entropy, which can be exploited by a crafted XML document to cause hash flooding. The recommended mitigation is to update libexpat to version 2.8.0 or later and apply a patch to CPython. The CVSS 4.0 base score is 6.3, reflecting a medium severity with network attack vector, high attack complexity, and low impact on availability.

Potential Impact

An attacker can craft a malicious XML document that triggers hash flooding in the affected CPython XML parsing modules, potentially leading to degraded performance or denial of service conditions. There is no indication of privilege escalation, data confidentiality, or integrity impact. No known exploits are currently reported in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Full mitigation requires updating libexpat to version 2.8.0 or later and applying the corresponding patch to CPython when available. Until official patches are released, consider limiting exposure to untrusted XML inputs or using alternative XML parsers not affected by this issue.

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: 5/11/2026, 6:06:31 PM

Last enriched: 5/11/2026, 6:22:59 PM

Last updated: 5/11/2026, 7:09:33 PM

Views: 2

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