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-1285

CVE-2026-1285: Django HTML Truncator DoS Vulnerability

CVE-2026-1285 is a denial-of-service vulnerability in Django's HTML truncator functions that allows attackers to exploit crafted HTML inputs. This article covers the technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2026-1285 Overview

CVE-2026-1285 is a denial-of-service vulnerability in the Django web framework. The flaw resides in django.utils.text.Truncator.chars() and Truncator.words() methods when invoked with html=True, as well as the truncatechars_html and truncatewords_html template filters. A remote attacker can submit crafted input containing a large number of unmatched HTML end tags to trigger excessive processing. The issue affects Django 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. Unsupported series such as 5.0.x, 4.1.x, and 3.2.x were not evaluated and may also be affected. Django credited Seokchan Yoon for reporting the issue.

Critical Impact

Remote unauthenticated attackers can exhaust application resources and render Django-based web applications unavailable by submitting crafted HTML inputs to endpoints that invoke the affected truncation routines.

Affected Products

  • Django 6.0 before 6.0.2
  • Django 5.2 before 5.2.11
  • Django 4.2 before 4.2.28

Discovery Timeline

  • 2026-02-03 - Django publishes coordinated security release addressing the issue, with credit to Seokchan Yoon
  • 2026-02-03 - CVE-2026-1285 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-1285

Vulnerability Analysis

The vulnerability is an algorithmic complexity flaw classified under [CWE-407] (Inefficient Algorithmic Complexity). It affects Django's text truncation utilities responsible for shortening HTML-bearing strings while keeping tag structure intact. When html=True is set on Truncator.chars() or Truncator.words(), or when the truncatechars_html and truncatewords_html template filters are used, Django must parse and rebalance HTML tags within the input. Crafted inputs containing a large volume of unmatched HTML end tags force the truncation logic into expensive processing paths. The result is high CPU utilization on the worker handling the request, which can stall request handling for other users.

Root Cause

The root cause is inefficient handling of malformed HTML during truncation. The truncator does not bound the work performed when reconciling unmatched closing tags. Each additional unmatched end tag amplifies the processing cost, producing a denial-of-service condition without requiring authentication, special privileges, or user interaction.

Attack Vector

Exploitation is network-based. Any Django view, template, or API endpoint that passes attacker-controlled text through the affected truncation routines becomes an attack surface. Common scenarios include comment systems, user profile fields, post previews, and search result snippets rendered with truncatechars_html or truncatewords_html. The attacker submits an HTTP request containing a payload of unmatched HTML end tags, repeating the request to amplify resource exhaustion against the application server.

No verified public exploit code is available. The vulnerability is described in prose because no realCodeExamples were provided. See the Django Weblog Security Updates for vendor technical details.

Detection Methods for CVE-2026-1285

Indicators of Compromise

  • HTTP request bodies or query parameters containing abnormally large counts of unmatched HTML end tags such as </p>, </div>, or </span>.
  • Sustained elevated CPU usage on Django worker processes correlated with specific endpoints that render or filter user-supplied HTML.
  • Increased request latency or timeouts on views invoking truncatechars_html, truncatewords_html, or Truncator with html=True.

Detection Strategies

  • Inspect web server and WSGI logs for repeated POST or GET requests to endpoints that handle rich text fields, especially with oversized payloads.
  • Profile Django applications to identify hotspots in django.utils.text.Truncator during incidents.
  • Add web application firewall rules to flag request bodies where the ratio of HTML closing tags to opening tags is heavily skewed.

Monitoring Recommendations

  • Track per-endpoint CPU time and response time percentiles to surface algorithmic complexity attacks.
  • Alert on worker process saturation, request queue growth, and 5xx error spikes on user-content endpoints.
  • Correlate spikes in request size on text-heavy endpoints with backend resource utilization.

How to Mitigate CVE-2026-1285

Immediate Actions Required

  • Upgrade to Django 6.0.2, 5.2.11, or 4.2.28 depending on the deployed branch.
  • Audit application code for use of Truncator.chars(html=True), Truncator.words(html=True), truncatechars_html, and truncatewords_html on untrusted input.
  • Enforce input size limits on fields that accept HTML before truncation routines process them.
  • Apply rate limiting on endpoints that render user-supplied HTML through truncation filters.

Patch Information

Django released fixed versions 6.0.2, 5.2.11, and 4.2.28 on 2026-02-03. Patch details and upgrade instructions are available in the Django Security Release Notes and the Django Weblog Security Updates. Operators on unsupported Django series such as 5.0.x, 4.1.x, and 3.2.x should migrate to a supported, patched branch.

Workarounds

  • Switch templates from truncatechars_html and truncatewords_html to the non-HTML variants truncatechars and truncatewords where safe to do so.
  • Pre-sanitize incoming HTML with a strict allowlist parser such as bleach before invoking truncation utilities.
  • Cap request body size and field length at the reverse proxy or WAF layer to limit the volume of unmatched end tags that can reach the application.
bash
# Configuration example
pip install --upgrade "Django>=4.2.28,<4.3"  # 4.2 LTS branch
pip install --upgrade "Django>=5.2.11,<5.3"  # 5.2 branch
pip install --upgrade "Django>=6.0.2,<6.1"   # 6.0 branch

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDjango

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-407
  • Technical References
  • Django Announcements Group
  • Vendor Resources
  • Django Security Release Notes

  • Django Weblog Security Updates
  • Related CVEs
  • CVE-2026-33034: Django DOS Vulnerability

  • CVE-2026-33033: Django MultiPartParser DOS Vulnerability

  • CVE-2025-14550: Django ASGIRequest DOS Vulnerability

  • CVE-2025-64458: Django HTTP Redirect 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