CVE-2026-1287
Potential SQL injection in column aliases via control characters
Reported by dsf · Published February 3, 2026
Django is fixed in 6.0.2, 5.2.11 and 4.2.28 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 6.0.2, 5.2.11, 4.2.28 |
| py3-django | Alpine | 4.2.28-r0 |
| django | Bitnami | 6.0.2, 5.2.11, 4.2.28 |
| awx | Chainguard | 24.6.1-r27 |
| authentik-fips | Chainguard | 2025.12.1-r2 |
| label-studio | Chainguard | 1.22.0-r3 |
| authentik | Chainguard | 2025.12.1-r2 |
| django | Bitnami | 6.0.2, 5.2.11, 4.2.28 |
| django | djangoproject | 6.0.2, 5.2.11, 4.2.28 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | Django | 6.0, 6.0.2, 5.2 |
| Red Hat | Red Hat OpenStack Platform 16.2 | |
| Red Hat | Red Hat Satellite 6 | |
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | 0:3.27.10-2.el9pc |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | 1772552788 |
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | |
| Red Hat | Red Hat Satellite 6.18 | 1773451075 |
| alpine | py3-django | 0 |
| Red Hat | Red Hat OpenStack Platform 17.1 | |
| PyPI | Django | 6.0.0-a.1, 4.2.0-a.1, 5.2.0-a.1 |
| Red Hat | Red Hat Update Infrastructure 4 for Cloud Providers | |
| Red Hat | Red Hat Ansible Automation Platform 2 | |
| Red Hat | Red Hat Ansible Automation Platform 2.5 | 1772214630 |
| Red Hat | Red Hat Discovery 2 | 1770913597 |
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | 0:1.5.1-1.el9sat |
| Red Hat | Red Hat Ansible Automation Platform 2.6 for RHEL 9 | 0:4.2.28-1.el9ap |
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | 0:6.17.7-1.el9sat |
…and 41 more
Timeline
- Feb 3, 2026 CVE Published
- Feb 4, 2026 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (19 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 27, 2026 Distribution Patch (12 in total, the first dated here)
- Jul 15, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-1287
vulnetix vdb fixes CVE-2026-1287
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-1287/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- Django security releases issued: 6.0.2, 5.2.11, and 4.2.28 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-1287 advisory
- https://github.com/advisories/GHSA-gvg8-93h5-g6qq advisory
- https://docs.djangoproject.com/en/dev/releases/security url
- https://www.djangoproject.com/weblog/2026/feb/03/security-releases url
- https://github.com/django/django/commit/e891a84c7ef9962bfcc3b4685690219542f86a22 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-46.yaml advisory
- https://access.redhat.com/security/cve/CVE-2026-1287 vdb
- RHBZ#2436339 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1287.json url
- https://access.redhat.com/errata/RHSA-2026:3959 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:5971 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:3958 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:5970 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:14835 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:3962 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:3960 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:2694 vendor-advisory
…and 1 more