Django Security Releases Patch SQL Injection and Denial-of-Service Vulnerabilities
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Feb 4, 2026

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_wsgiauthentication handler - Higher-risk user populations:
- Organizations using PostGIS-backed GIS features
- Applications using
FilteredRelationwith dynamic dictionaries ororder_by() - ASGI deployments
- Deployments using
django.utils.text.TruncatorHTML methods or related template filters mod_wsgiauthentication handler users
- Known exploitation in the wild: not reported in the provided references


