Vulnerabilities · 2026 · Djangoproject
CVE-2026-1287
Djangoproject Django vulnerability
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `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()`. 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 Solomon Kebede for reporting this issue.
Affected products
Django. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory
- www.djangoproject.com/weblog/2026/feb/03/security-releases/ · Patch
- groups.google.com/g/django-announce
- nvd.nist.gov/vuln/detail/CVE-2026-1287
- docs.djangoproject.com/en/dev/releases/security
- www.djangoproject.com/weblog/2026/feb/03/security-releases
- github.com/django/django/commit/e891a84c7ef9962bfcc3b4685690219542f86a22
- github.com/advisories/GHSA-gvg8-93h5-g6qq
- nvd.nist.gov/vuln/detail/CVE-2026-1287
- cve.org/CVERecord?id=CVE-2026-1287
More vulnerabilities in Djangoproject products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.