CVE-2026-1287
Severity CVSS v4.0:
Pending analysis
Type:
CWE-89
SQL Injection
Publication date:
03/02/2026
Last modified:
04/02/2026
Description
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.<br />
`FilteredRelation` is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet` methods `annotate()`, `aggregate()`, `extra()`, `values()`, `values_list()`, and `alias()`.<br />
Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.<br />
Django would like to thank Solomon Kebede for reporting this issue.
Impact
Base Score 3.x
5.40
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 4.2 (including) | 4.2.28 (excluding) |
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 5.2 (including) | 5.2.11 (excluding) |
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 6.0 (including) | 6.0.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



