An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
2025-09-03T21:15:32.850
2025-11-04T22:16:31.930
Modified
CVSSv3.1: 7.1 (HIGH)
| Type | Vendor | Product | Version/Range | Vulnerable? |
|---|---|---|---|---|
| Application | djangoproject | django | < 4.2.24 | Yes |
| Application | djangoproject | django | < 5.1.12 | Yes |
| Application | djangoproject | django | < 5.2.6 | Yes |