CVE-2026-1287Django has an SQL Injection issue
A medium-severity vulnerability reachable over the network, needing low privileges and no user interaction. EPSS estimates a 0.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.6%
- percentile 42%
- Fix
- Named by a source
- CVE published 3 Feb 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.6% (+1) · Network attack vector (+10) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 6.0.2 / 5.2.11 / 4.2.28 or later on your release line.
- Patch: https://docs.djangoproject.com/en/dev/releases/security/
- Patch: https://www.djangoproject.com/weblog/2026/feb/03/security-releases/
- Commit / pull request: https://github.com/django/django/commit/e891a84c7ef9962bfcc3b4685690219542f86a22
- Advisory: https://groups.google.com/g/django-announce
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-1287
- Advisory: https://github.com/advisories/GHSA-gvg8-93h5-g6qq
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 6.0a1, < 6.0.2Fixed in6.0.2OSV (GHSA-gvg8-93h5-g6qq)
- Affected>= 5.2a1, < 5.2.11Fixed in5.2.11OSV (GHSA-gvg8-93h5-g6qq)
- Affected>= 4.2a1, < 4.2.28Fixed in4.2.28OSV (GHSA-gvg8-93h5-g6qq)
- Affected>= 4.2, < 4.2.28Fixed in4.2.28OSV (PYSEC-2026-46)
- Affected>= 5.2, < 5.2.11Fixed in5.2.11OSV (PYSEC-2026-46)
- Affected>= 6.0, < 6.0.2Fixed in6.0.2OSV (PYSEC-2026-46)
djangoproject django product:djangoproject/django
- Affected>= 6.0, < 6.0.2Affected range ends before6.0.2as published by CNA (CVE List)
- Affected>= 5.2, < 5.2.11Affected range ends before5.2.11as published by CNA (CVE List)
- Affected>= 4.2, < 4.2.28Affected range ends before4.2.28as published by CNA (CVE List)
- Affected>= 4.2, < 4.2.28Affected range ends before4.2.28as published by CPE data (via the NVD API)
- Affected>= 5.2, < 5.2.11Affected range ends before5.2.11as published by CPE data (via the NVD API)
- Affected>= 6.0, < 6.0.2Affected range ends before6.0.2as published by CPE data (via the NVD API)
Red Hat Red Hat Ansible Automation Platform 2 product:redhat/redhatansibleautomationplatform2
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.5 product:redhat/redhatansibleautomationplatform25
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 product:redhat/redhatansibleautomationplatform25forrhel8
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 product:redhat/redhatansibleautomationplatform25forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.6 product:redhat/redhatansibleautomationplatform26
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9 product:redhat/redhatansibleautomationplatform26forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Discovery 2 product:redhat/redhatdiscovery2
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Satellite 6 product:redhat/redhatsatellite6
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Satellite 6.16 for RHEL 8 product:redhat/redhatsatellite616forrhel8
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Satellite 6.16 for RHEL 9 product:redhat/redhatsatellite616forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Satellite 6.17 for RHEL 9 product:redhat/redhatsatellite617forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
- Affected< 0:6.17.7-1.el9satFixed in0:6.17.7-1.el9satas published by CNA (CVE List)
Red Hat Red Hat Satellite 6.18 product:redhat/redhatsatellite618
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Satellite 6.18 for RHEL 9 product:redhat/redhatsatellite618forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Update Infrastructure 4 for Cloud Providers product:redhat/redhatupdateinfrastructure4forcloudproviders
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.4 MEDIUM (version 3.1)
- Score from
- CISA-ADP
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- low
- User interaction
- none
- Weakness
- CWE-89
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 3 Feb 2026 ≈Fix released 0:6.17.7-1.el9sat (product:redhat/redhatsatellite617forrhel9)
- 3 Feb 2026Published
≈ approximate: the sources keep no date for this.
References
- patchhttps://docs.djangoproject.com/en/dev/releases/security/
- advisoryhttps://groups.google.com/g/django-announce
- patchhttps://www.djangoproject.com/weblog/2026/feb/03/security-releases/
- otherhttps://access.redhat.com/errata/RHSA-2026:14835
- otherhttps://access.redhat.com/errata/RHSA-2026:2694
- otherhttps://access.redhat.com/errata/RHSA-2026:3958
- otherhttps://access.redhat.com/errata/RHSA-2026:3959
- otherhttps://access.redhat.com/errata/RHSA-2026:3960
- otherhttps://access.redhat.com/errata/RHSA-2026:3962
- otherhttps://access.redhat.com/errata/RHSA-2026:5970
- otherhttps://access.redhat.com/errata/RHSA-2026:5971
- otherhttps://access.redhat.com/errata/RHSA-2026:6291
- otherhttps://access.redhat.com/security/cve/CVE-2026-1287
- otherhttps://bugzilla.redhat.com/show_bug.cgi?id=2436339
- otherhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1287.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-1287
- commit / pull requesthttps://github.com/django/django/commit/e891a84c7ef9962bfcc3b4685690219542f86a22
- otherhttps://docs.djangoproject.com/en/dev/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-46.yaml
- otherhttps://www.djangoproject.com/weblog/2026/feb/03/security-releases
- advisoryhttps://github.com/advisories/GHSA-gvg8-93h5-g6qq
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-1287 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-gvg8-93h5-g6qq (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-46 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 41 min ago · osv 41 min ago · nvd 41 min ago · epss 41 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2026-1287, GHSA-gvg8-93h5-g6qq, PYSEC-2026-46