A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7210

CVE-2026-7210: Libexpat XXE Vulnerability

CVE-2026-7210 is an XXE vulnerability in Libexpat that exploits insufficient entropy in hash-flooding protection, allowing attackers to trigger denial of service. This article covers technical details, impact, and mitigation.

Published: May 18, 2026

CVE-2026-7210 Overview

CVE-2026-7210 affects Python's xml.parsers.expat and xml.etree.ElementTree modules, which rely on the libexpat library for XML parsing. The vulnerability stems from insufficient entropy in the hash-flooding protection mechanism used by Expat. Attackers can craft malicious XML documents that trigger hash collisions, leading to algorithmic complexity attacks that degrade parser performance. This weakness is categorized under [CWE-331] Insufficient Entropy. Full mitigation requires upgrading libexpat to version 2.8.0 or later in combination with the Python patch.

Critical Impact

Crafted XML documents can trigger hash flooding in Python's XML parsing stack, causing CPU exhaustion and denial of service in applications that process untrusted XML input.

Affected Products

  • libexpat (all versions prior to 2.8.0)
  • Python xml.parsers.expat module
  • Python xml.etree.ElementTree module

Discovery Timeline

  • 2026-05-11 - CVE-2026-7210 published to NVD
  • 2026-05-16 - Last updated in NVD database

Technical Details for CVE-2026-7210

Vulnerability Analysis

The vulnerability is an algorithmic complexity attack against the hash table used internally by libexpat to manage XML entities and element names. Expat implements hash-flooding protection by randomizing its hash function with a per-process seed. The protection breaks down when the seed lacks sufficient entropy, allowing attackers to predict hash outputs and craft inputs that collide into the same hash bucket.

When hash buckets become heavily populated with collisions, lookups degrade from amortized constant time to linear time per operation. Processing a maliciously crafted XML document then forces the parser into quadratic complexity, consuming disproportionate CPU resources. Applications such as web services, configuration parsers, and document processors that accept XML from untrusted sources are exposed to denial-of-service conditions.

Root Cause

The root cause is weak seed generation for the Expat hash function. The entropy source used to randomize the hash did not produce values resistant to reverse-engineering, so an attacker who understood the seed distribution could pre-compute strings that map to identical hash buckets. The Python xml.parsers.expat and xml.etree.ElementTree modules inherit this weakness directly from the underlying libexpat library.

Attack Vector

Exploitation requires the target application to parse attacker-controlled XML. The attacker submits a document containing many element or entity names crafted to collide in Expat's internal hash table. No authentication or user interaction is required when the XML endpoint is network-exposed. The attack only impacts availability — confidentiality and integrity are not affected.

No public proof-of-concept exploit is currently available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. See the GitHub Issue Report for technical discussion.

Detection Methods for CVE-2026-7210

Indicators of Compromise

  • Sustained high CPU utilization in processes parsing XML, especially Python workers using xml.etree.ElementTree or xml.parsers.expat.
  • Inbound XML payloads containing unusually large numbers of distinct element names, attributes, or entity references.
  • Web request latency spikes correlated with specific XML POST bodies or uploads.

Detection Strategies

  • Inspect XML traffic at the application gateway for documents that exceed size or element-count thresholds appropriate for the workload.
  • Monitor Python process runtime metrics and stack traces during XML parsing to identify abnormal time spent in Expat internals.
  • Correlate request source IPs with elevated parser CPU usage to identify deliberate flooding attempts.

Monitoring Recommendations

  • Enable resource limits (RLIMIT_CPU, container CPU quotas) on services that parse XML from untrusted sources.
  • Log XML parsing duration per request and alert on outliers exceeding baseline percentiles.
  • Track libexpat and Python interpreter versions across the fleet to confirm patched releases are deployed.

How to Mitigate CVE-2026-7210

Immediate Actions Required

  • Upgrade libexpat to version 2.8.0 or later on all systems that link against it, including container base images.
  • Apply the Python patch from the CPython Pull Request; both fixes are required for complete mitigation.
  • Inventory applications using xml.etree.ElementTree, xml.parsers.expat, or third-party libraries that wrap Expat.
  • Restrict XML parsing endpoints to authenticated clients where business requirements allow.

Patch Information

The fix is delivered through two coordinated changes. First, libexpat 2.8.0 strengthens its internal hash randomization. Second, the CPython patch tracked in the Python Security Announcement ensures Python supplies adequate entropy to Expat at initialization. Applying only one of the two patches leaves the protection partially bypassable.

Workarounds

  • Enforce strict input size limits on XML payloads at the reverse proxy or application layer before parsing begins.
  • Reject XML documents that contain more elements, attributes, or entities than the application legitimately requires.
  • Isolate XML parsing into a sandboxed worker process with CPU and memory caps so denial of service cannot cascade.
  • Where feasible, prefer alternative serialization formats such as JSON for untrusted input until patched packages are deployed.
bash
# Verify installed libexpat and Python versions
dpkg -l | grep -i expat
python3 -c "import xml.parsers.expat; print(xml.parsers.expat.EXPAT_VERSION)"

# Upgrade on Debian/Ubuntu after distribution package availability
sudo apt update && sudo apt install --only-upgrade libexpat1 python3

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechLibexpat

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-331
  • Technical References
  • GitHub Issue Report

  • Python Security Announcement

  • OpenWall OSS-Security Thread

  • OpenWall OSS-Security Thread
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-41080: libexpat XXE Vulnerability

  • CVE-2026-24515: libexpat XXE Vulnerability Exposure

  • CVE-2024-28757: Libexpat XXE Vulnerability

  • CVE-2023-52426: Libexpat XXE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English