The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-6069

CVE-2025-6069: HTMLParser DoS Vulnerability

CVE-2025-6069 is a denial-of-service flaw in html.parser.HTMLParser caused by quadratic complexity when processing malformed inputs. This post covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-6069 Overview

CVE-2025-6069 is an Algorithmic Complexity Attack vulnerability in Python's html.parser.HTMLParser class. The parser exhibits worst-case quadratic complexity when processing certain crafted malformed HTML inputs, potentially leading to amplified denial-of-service conditions. This vulnerability allows remote attackers with limited privileges to cause resource exhaustion on systems processing untrusted HTML content.

Critical Impact

Applications using Python's built-in HTML parser to process user-supplied or untrusted HTML content are vulnerable to denial-of-service attacks through specially crafted malformed inputs that trigger quadratic time complexity.

Affected Products

  • Python CPython (multiple versions)
  • Applications using html.parser.HTMLParser class
  • Web applications processing untrusted HTML input

Discovery Timeline

  • 2025-06-17 - CVE CVE-2025-6069 published to NVD
  • 2025-07-07 - Last updated in NVD database

Technical Details for CVE-2025-6069

Vulnerability Analysis

The vulnerability resides in Python's standard library html.parser module, specifically within the HTMLParser class. When processing malformed HTML input with certain characteristics, the parser's algorithmic behavior degrades to O(n²) time complexity instead of the expected O(n) linear complexity. This algorithmic inefficiency can be exploited by attackers to cause significant CPU consumption and application slowdowns or hangs.

The issue is classified under CWE-1333 (Inefficient Regular Expression Complexity), indicating that the underlying cause likely involves regular expression operations or similar pattern matching within the HTML parsing logic that exhibits pathological behavior on adversarial inputs.

Root Cause

The root cause is inefficient algorithmic handling of malformed HTML constructs within the HTMLParser class. When the parser encounters specific sequences of malformed input characters, internal string processing or pattern matching operations iterate over the input in a manner that results in quadratic time complexity. This means doubling the input size quadruples the processing time, making it trivial for attackers to craft inputs that consume excessive CPU resources.

Attack Vector

An attacker can exploit this vulnerability by submitting specially crafted malformed HTML content to any application that uses Python's html.parser.HTMLParser to process untrusted input. The attack is network-accessible and requires low privileges (such as the ability to submit HTML content to a web form, API endpoint, or any service that parses HTML). No user interaction is required for exploitation.

The attack causes resource exhaustion on the target system, potentially leading to:

  • Application timeouts and hangs
  • Degraded performance for legitimate users
  • Service unavailability in severe cases

Since no verified code examples are available, the exploitation mechanism involves crafting malformed HTML with specific patterns that trigger the quadratic behavior in the parser's internal processing. For detailed technical information, refer to the GitHub Issue #135462 and the associated Pull Request #135464.

Detection Methods for CVE-2025-6069

Indicators of Compromise

  • Unusual CPU spikes when processing HTML content
  • Application threads stuck in HTML parsing operations for extended periods
  • Increased response times for endpoints that process HTML input
  • Memory and CPU exhaustion on servers handling HTML parsing

Detection Strategies

  • Monitor application performance metrics for anomalous CPU consumption during HTML parsing operations
  • Implement request timeout monitoring to detect parsing operations that exceed normal durations
  • Log and analyze request payloads that trigger long processing times in HTML parsing components
  • Use application performance monitoring (APM) tools to identify slow HTML parsing transactions

Monitoring Recommendations

  • Set up alerts for CPU utilization spikes correlated with HTML processing endpoints
  • Implement request size limits and parsing timeouts as defensive measures
  • Monitor Python process resource consumption for signs of algorithmic complexity attacks
  • Review logs for repeated requests with malformed HTML content from the same source

How to Mitigate CVE-2025-6069

Immediate Actions Required

  • Update Python to a patched version that includes the fix for this vulnerability
  • Implement input size limits on HTML content processed by affected applications
  • Add parsing timeouts to prevent long-running HTML parsing operations
  • Consider using alternative HTML parsing libraries (such as lxml or BeautifulSoup with lxml backend) for processing untrusted content

Patch Information

The Python Security Team has released patches across multiple Python versions. The fix addresses the algorithmic complexity issue in the HTMLParser class. Multiple commits have been applied to various Python branches:

  • CPython Commit 4455cba
  • CPython Commit 6eb6c5d
  • CPython Commit 8d1b3df
  • CPython Commit ab0893f
  • CPython Commit d851f8e
  • CPython Commit f3c6f88
  • CPython Commit fdc9d21

For complete information, refer to the Python Security Announcement.

Workarounds

  • Implement strict input validation and size limits on HTML content before parsing
  • Use parsing timeouts to abort operations that exceed reasonable duration thresholds
  • Consider alternative HTML parsing libraries that are not affected by this vulnerability
  • Deploy rate limiting on endpoints that process HTML content to reduce attack impact
bash
# Configuration example - Set resource limits for Python processes
# Add to your application startup or systemd service file

# Limit CPU time for Python process (in seconds)
ulimit -t 300

# Implement timeout wrapper for HTML parsing in your application
# Example using Python's signal module to enforce parsing timeout
# timeout --signal=SIGKILL 30 python your_html_processor.py

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-1333
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Issue #135462

  • GitHub Pull Request #135464

  • Python Security Announcement
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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