VDB

CVE-2026-1287

CVE-2026-1287 PUBLISHED CVSS 9.800000190734863 CRITICAL

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.

PackageEcosystemFixed in
DjangoPyPI6.0.2, 5.2.11, 4.2.28
py3-djangoAlpine4.2.28-r0
djangoBitnami6.0.2, 5.2.11, 4.2.28
awxChainguard24.6.1-r27
authentik-fipsChainguard2025.12.1-r2
label-studioChainguard1.22.0-r3
authentikChainguard2025.12.1-r2
djangoBitnami6.0.2, 5.2.11, 4.2.28
djangodjangoproject6.0.2, 5.2.11, 4.2.28

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
djangoprojectDjango6.0, 6.0.2, 5.2
Red HatRed Hat OpenStack Platform 16.2
Red HatRed Hat Satellite 6
Red HatRed Hat Satellite 6.17 for RHEL 90:3.27.10-2.el9pc
Red HatRed Hat Ansible Automation Platform 2.61772552788
Red HatRed Hat Satellite 6.16 for RHEL 9
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Satellite 6.17 for RHEL 9
Red HatRed Hat Satellite 6.181773451075
alpinepy3-django0
Red HatRed Hat OpenStack Platform 17.1
PyPIDjango6.0.0-a.1, 4.2.0-a.1, 5.2.0-a.1
Red HatRed Hat Update Infrastructure 4 for Cloud Providers
Red HatRed Hat Ansible Automation Platform 2
Red HatRed Hat Ansible Automation Platform 2.51772214630
Red HatRed Hat Discovery 21770913597
Red HatRed Hat Satellite 6.17 for RHEL 90:1.5.1-1.el9sat
Red HatRed Hat Ansible Automation Platform 2.6 for RHEL 90:4.2.28-1.el9ap
Red HatRed Hat Satellite 6.17 for RHEL 90: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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›