Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-26699

CVE-2025-26699: Django wrap() Method DoS Vulnerability

CVE-2025-26699 is a denial-of-service vulnerability in Django's wrap() method and wordwrap filter when processing very long strings. This article covers the technical details, affected versions, and mitigation steps.

Published: April 15, 2026

CVE-2025-26699 Overview

A denial-of-service vulnerability has been identified in Django's text handling utilities. The django.utils.text.wrap() method and the wordwrap template filter are vulnerable to resource exhaustion attacks when processing very long strings. This vulnerability allows unauthenticated remote attackers to cause service disruption by submitting crafted payloads that trigger excessive CPU consumption during text wrapping operations.

Critical Impact

Remote attackers can exploit this vulnerability to cause denial of service conditions in Django applications that process user-controlled text through the wrap() method or wordwrap template filter, potentially making web applications unresponsive.

Affected Products

  • Django 5.1 before 5.1.7
  • Django 5.0 before 5.0.13
  • Django 4.2 before 4.2.20
  • Debian Linux 11.0

Discovery Timeline

  • 2025-03-06 - Security patches released by Django
  • 2025-03-06 - CVE-2025-26699 published to NVD
  • 2025-10-03 - Last updated in NVD database

Technical Details for CVE-2025-26699

Vulnerability Analysis

This vulnerability is classified as CWE-770 (Allocation of Resources Without Limits or Throttling). The django.utils.text.wrap() method and its corresponding wordwrap template filter are designed to wrap text at a specified line width. However, the implementation lacks proper resource management when handling exceptionally long input strings.

When a malicious user supplies a very long string without natural word boundaries (such as spaces or hyphens), the text wrapping algorithm enters a computationally expensive operation attempting to find appropriate break points. This algorithmic complexity issue results in excessive CPU consumption that can be exploited to deny service to legitimate users.

The network-accessible nature of this vulnerability means that any Django application exposing functionality that processes user input through these text utilities is potentially at risk. No authentication or special privileges are required to exploit this flaw.

Root Cause

The root cause lies in the insufficient input validation and resource management within the text wrapping implementation. The wrap() method does not impose limits on the computational resources allocated when processing input strings, allowing attackers to trigger resource exhaustion scenarios by submitting specially crafted long strings that maximize processing overhead.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication. An attacker can craft HTTP requests containing very long strings that will be processed by Django's wrap() method or wordwrap template filter. When these long strings lack natural word boundaries, the text wrapping algorithm must perform extensive processing to determine appropriate line breaks, consuming significant CPU resources.

The attack is particularly effective because:

  • No authentication is required to trigger the vulnerability
  • The attack can be launched from any network-connected location
  • A single malicious request with a sufficiently long string can consume substantial server resources

Detection Methods for CVE-2025-26699

Indicators of Compromise

  • Abnormal CPU spikes on Django application servers coinciding with HTTP requests containing unusually long strings
  • HTTP request logs showing requests with extremely large body sizes or query parameters
  • Application response time degradation or timeouts during periods of suspicious traffic
  • Memory consumption anomalies in Django worker processes

Detection Strategies

  • Implement request monitoring to identify HTTP requests with payload sizes exceeding normal operational thresholds
  • Configure application performance monitoring (APM) tools to alert on unusual CPU consumption patterns
  • Analyze web server access logs for requests with abnormally large content-length headers
  • Deploy web application firewall (WAF) rules to detect and block requests containing very long unbroken text strings

Monitoring Recommendations

  • Configure alerts for sustained elevated CPU usage on Django application servers
  • Monitor request duration metrics to identify potential DoS conditions
  • Implement rate limiting and request size limits at the reverse proxy or load balancer level
  • Review Django application logs for errors related to text processing timeouts

How to Mitigate CVE-2025-26699

Immediate Actions Required

  • Upgrade Django 5.1 installations to version 5.1.7 or later
  • Upgrade Django 5.0 installations to version 5.0.13 or later
  • Upgrade Django 4.2 installations to version 4.2.20 or later
  • Review application code for uses of django.utils.text.wrap() and the wordwrap template filter with user-controlled input

Patch Information

Django has released security patches addressing this vulnerability. The fix is included in the following versions:

  • Django 5.1.7
  • Django 5.0.13
  • Django 4.2.20

For detailed patch information, refer to the Django Security Release Notes and the Django Security Releases Weblog. Debian users should apply updates from the Debian LTS Announcement.

Workarounds

  • Implement input validation to limit the maximum length of strings processed by wrap() or wordwrap
  • Configure web server or reverse proxy request size limits to reject abnormally large payloads
  • Add rate limiting to endpoints that process user-provided text content
  • Consider implementing request timeouts at the application level for text processing operations
bash
# Configuration example - nginx request size limit
# Add to nginx server or location block
client_max_body_size 1m;
client_body_buffer_size 16k;

# Rate limiting configuration
limit_req_zone $binary_remote_addr zone=textproc:10m rate=10r/s;
limit_req zone=textproc burst=20 nodelay;

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDjangoproject Django

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.29%

  • 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-770
  • Technical References
  • Openwall OSS-Security Mailing List

  • Debian LTS Announcement
  • Vendor Resources
  • Django Security Release Notes

  • Django Announce Group

  • Django Weblog Security Releases
  • Related CVEs
  • CVE-2026-25673: Djangoproject Django DoS Vulnerability

  • CVE-2025-64460: Django XML Deserializer DOS Vulnerability

  • CVE-2024-24680: Django intcomma Filter DoS Vulnerability

  • CVE-2024-38875: Django DoS Vulnerability in urlize Functions
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