Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryinternet-facing-service-vulnerability

Django Security Releases Patch SQL Injection and Denial-of-Service Vulnerabilities

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Feb 4, 2026

Django Security Releases Patch SQL Injection and Denial-of-Service Vulnerabilities

Django maintainers released urgent security updates addressing six vulnerabilities affecting multiple supported branches, including three high-severity SQL injection flaws and multiple denial-of-service (DoS) vectors. The issues impact Django 4.2, 5.2, 6.0, and the main development branch, with fixed releases called out as Django 4.2.28, 5.2.11, and 6.0.2.

The most severe fixes cover SQL injection paths that can allow execution of arbitrary SQL: CVE-2026-1207 affects PostGIS users via raster lookups on GIS fields when untrusted input is used as a band index; CVE-2026-1287 involves FilteredRelation SQL injection through column aliases containing control characters when crafted dictionaries are expanded into QuerySet methods (e.g., annotate(), aggregate(), values()); and CVE-2026-1312 targets QuerySet.order_by() with FilteredRelation via column aliases containing periods. DoS fixes include CVE-2025-14550 (resource exhaustion via repeated/duplicate headers in ASGI deployments) and CVE-2026-1285 (DoS in django.utils.text.Truncator HTML methods), alongside a low-severity timing issue CVE-2025-13473 that can enable username enumeration in a mod_wsgi authentication handler.

Why it matters

Impact assessment

Django deployments on supported branches 4.2, 5.2, and 6.0 are affected, with highest risk concentrated in applications using PostGIS raster lookups, ASGI request handling, or FilteredRelation-based query construction. The most severe impact is arbitrary SQL execution in application databases under specific unsafe input-handling conditions, while the DoS flaws can degrade or interrupt service availability through resource exhaustion.

Exposure is potentially widespread because Django is broadly deployed, but practical exploitability is more targeted to applications using the vulnerable features and patterns. The story does not cite confirmed exploitation in the wild, but the presence of multiple high-severity SQL injection paths makes this an urgent exposure investigation.

Structured facts

  • Affected product: Django
  • Affected branches: 4.2, 5.2, 6.0, main development branch
  • Fixed versions: Django 4.2.28, 5.2.11, 6.0.2
  • High-impact issue class: SQL injection enabling arbitrary SQL execution
  • Availability impact: denial-of-service via ASGI header processing and HTML truncation parsing
  • Information disclosure impact: username enumeration via timing differences in mod_wsgi authentication handler
  • Higher-risk user populations:
    • Organizations using PostGIS-backed GIS features
    • Applications using FilteredRelation with dynamic dictionaries or order_by()
    • ASGI deployments
    • Deployments using django.utils.text.Truncator HTML methods or related template filters
    • mod_wsgi authentication handler users
  • Known exploitation in the wild: not reported in the provided references
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Feb 4, 2026
  1. Feb 4, 202610mo ago

    Patched Django versions 6.0.2, 5.2.11, and 4.2.28 become available

    Django published fixed releases 6.0.2, 5.2.11, and 4.2.28, along with GitHub changesets for affected branches. The advisory urged immediate upgrades, especially for deployments using PostGIS, ASGI servers, or FilteredRelation-based queries.

  2. Feb 4, 202610mo ago

    Django releases security updates for six vulnerabilities

    The Django development team issued urgent security updates addressing six flaws affecting Django 4.2, 5.2, 6.0, and the main development branch. The issues included three high-severity SQL injection vulnerabilities, multiple denial-of-service risks, and a low-severity username-enumeration timing issue in mod_wsgi authentication.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.