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-2025-12084

CVE-2025-12084: Python xml.dom.minidom DoS Vulnerability

CVE-2025-12084 is a denial of service vulnerability in Python's xml.dom.minidom module caused by quadratic algorithm complexity when building nested elements, impacting availability with excessively nested documents.

Published: May 26, 2026

CVE-2025-12084 Overview

CVE-2025-12084 is an algorithmic complexity vulnerability in the Python xml.dom.minidom module. When applications build nested elements using methods such as appendChild() that depend on _clear_id_cache(), the underlying algorithm exhibits quadratic time complexity. Attackers can submit deeply nested XML documents to trigger excessive CPU consumption and degrade application availability.

The issue affects the CPython reference implementation maintained by the Python Software Foundation. It is tracked as CWE-407: Inefficient Algorithmic Complexity.

Critical Impact

Remote attackers can exhaust CPU resources by submitting deeply nested XML documents to applications that parse or build XML trees with xml.dom.minidom, resulting in denial of service.

Affected Products

  • Python CPython development branch versions including 3.15.0 alpha1
  • Python CPython development branch version 3.15.0 alpha2
  • Applications using xml.dom.minidom for nested element construction

Discovery Timeline

  • 2025-12-03 - CVE-2025-12084 published to NVD
  • 2026-01-26 - Last updated in NVD database

Technical Details for CVE-2025-12084

Vulnerability Analysis

The vulnerability resides in xml.dom.minidom, Python's standard library module for minimal Document Object Model (DOM) parsing. Methods like appendChild() invoke _clear_id_cache() to invalidate cached element identifiers when the tree is modified. The cache invalidation routine traverses ancestors or descendants in a way that produces quadratic complexity as the document depth grows.

Processing a document with N nested elements requires work proportional to N². A modest-looking input of several thousand nested nodes can therefore consume seconds to minutes of CPU time on a single request. Applications that parse untrusted XML or build DOM trees from attacker-controlled structures are exposed.

Root Cause

The root cause is inefficient algorithmic complexity [CWE-407] in the internal cache-clearing logic invoked by DOM mutation methods. Each insertion into a deeply nested structure repeats work that scales with the existing tree size rather than performing constant-time bookkeeping. See the upstream discussion in the CPython issue tracker for the maintainer analysis.

Attack Vector

The attack is network-reachable and requires no authentication or user interaction, but depends on the target application invoking xml.dom.minidom on attacker-supplied input. A typical exploitation path involves an HTTP endpoint, message queue, or file upload feature that parses XML using minidom.parseString() or constructs DOM trees from external data. The attacker submits a payload composed of thousands of nested elements to trigger the quadratic code path and saturate one or more worker threads.

No verified public proof-of-concept code is available. The vulnerability mechanism is described in prose because no realCodeExamples were supplied; refer to the GitHub pull request 142146 for the technical fix.

Detection Methods for CVE-2025-12084

Indicators of Compromise

  • Sustained high CPU utilization in Python worker processes correlated with inbound XML payloads
  • HTTP requests containing XML bodies with unusually deep element nesting, often thousands of levels
  • Application response time degradation or worker timeouts on endpoints that invoke xml.dom.minidom
  • Repeated client requests from a single source containing similarly structured nested XML

Detection Strategies

  • Inspect web application and API gateway logs for XML request bodies that exceed reasonable depth or size thresholds
  • Enable Python application profiling on parsing endpoints and flag stack frames in xml/dom/minidom.py consuming disproportionate CPU
  • Correlate process-level CPU spikes with concurrent XML ingestion events using endpoint or runtime telemetry

Monitoring Recommendations

  • Track per-request CPU time and request duration on services that parse XML and alert on outliers
  • Monitor Python worker thread saturation, queue depth, and request timeout rates as availability signals
  • Capture and retain XML payload metadata such as element count and maximum depth for forensic review

How to Mitigate CVE-2025-12084

Immediate Actions Required

  • Inventory all Python services that import xml.dom.minidom and identify those that process untrusted input
  • Apply the upstream CPython fix once a stable release containing it is available for your branch
  • Enforce request body size limits and XML depth limits at the web server, reverse proxy, or application layer
  • Where feasible, replace xml.dom.minidom with defusedxml or a streaming parser such as xml.etree.ElementTree.iterparse() for untrusted input

Patch Information

The CPython maintainers merged the fix through pull request 142146. Key commits include 027f21e4, 08d8e18a, and ddcd2acd. Upgrade to a CPython release that incorporates these commits when one is published for your supported branch.

Workarounds

  • Reject XML payloads exceeding a defined maximum nesting depth at the ingress layer before they reach Python parsing code
  • Use the defusedxml library, which provides hardened wrappers and configurable limits against XML-based denial of service
  • Run XML parsing in isolated worker processes with strict CPU and wall-clock timeouts to contain resource exhaustion
bash
# Configuration example: limit request body size in nginx as a defense-in-depth control
# /etc/nginx/conf.d/xml-limits.conf
client_max_body_size 256k;
client_body_buffer_size 64k;
client_body_timeout 10s;

# Python application-side guard using defusedxml
# pip install defusedxml
# from defusedxml.minidom import parseString
# parseString(payload)  # raises on suspicious constructs

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPython

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-407
  • Technical References
  • GitHub Commit Change

  • GitHub Commit Improvement

  • GitHub Commit Enhancement

  • GitHub Commit Refactor

  • GitHub Commit Modifications

  • GitHub Commit Adjustment

  • GitHub Commit Revision

  • GitHub Commit Bugfix

  • GitHub Commit Merge
  • Vendor Resources
  • GitHub Commit Fix

  • GitHub Commit Update

  • GitHub Commit Patch

  • GitHub Issue Discussion

  • GitHub Pull Request Merge
  • Related CVEs
  • CVE-2025-5302: LlamaIndex JSONReader DoS Vulnerability

  • CVE-2025-13837: Python plistlib Module DoS Vulnerability

  • CVE-2025-13836: Python Python DOS Vulnerability

  • CVE-2026-0994: Google Protobuf Python DoS 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