CVE-2026-1287
Potential SQL injection in column aliases via control characters
CVSS v3
5.4
MEDIUM
EPSS Score
0.9 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
none
SSVC status
Get an alert for each new CVE published for django.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- djangoPyPIfrom 4.2 · fixed in 4.2.28
- djangoBitnamifrom 4.2.0 · fixed in 4.2.28
Vendor advisories
Django: Django: SQL Injection via crafted column aliases
ansible-automation-platform-24/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · automation-controller.src as a component of Red Hat Ansible Automation Platform 2 · python-django-bash-completion (satellite-capsule:el8) as a component of Red Hat Satellite 6
Red Hat Security Advisory: Satellite 6.18.5 Async Update
Red Hat Security Advisory: General availability of the satellite/iop-advisor-backend-rhel9 container image
Red Hat Security Advisory: Satellite 6.16.7 Async Update
Red Hat Security Advisory: Satellite 6.17.7 Async Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
4 more advisories
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. `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.
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Published
- 2026-02-03
- Last Modified
- 2026-02-04
Frequently asked questions
What is CVE-2026-1287?
Is CVE-2026-1287 actively exploited?
What is the CVSS score for CVE-2026-1287?
Running django? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.