An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Stackered for reporting this issue.
Also found: Affected version boundary identified
Built only from official records (NVD, the CVE List and CISA). No AI. Always confirm applicability for your exact version and platform in the vendor advisory. NVD record last modified 18 Oct 2026, 18:10 UTC · checked by StraitOfVuln 02 Dec 2026, 19:36 UTC.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N · Attack vector: Network| https://docs.djangoproject.com/en/dev/releases/security/ | PatchVendor Advisory |
| https://www.djangoproject.com/weblog/2025/dec/02/security-releases/ | PatchVendor Advisory |
| https://groups.google.com/g/django-announce | Mailing ListRelease Notes |
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Djangoproject Django