Home / djangoproject / Django / CVE-2026-1287
CVE-2026-1287: is it exploited, and which versions of djangoproject Django are affected and fixed?
CVE-2026-1287 is a SQL injection vulnerability in djangoproject Django. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: Django from 6.0a1 before 6.0.2, Django from 5.2a1 before 5.2.11 and Django from 4.2a1 before 4.2.28 (GitHub advisory GHSA-gvg8-93h5-g6qq). Fixed in 6.0.2, 5.2.11 and 4.2.28 (GitHub advisory GHSA-gvg8-93h5-g6qq). Severity: Medium (5.4, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-1287?
Potential SQL injection in column aliases via control characters
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.
From the CVE record by DSF, last updated July 15, 2026, 01:22 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| djangoproject | Django django | from 6.0 before 6.0.2 from 5.2 before 5.2.11 from 4.2 before 4.2.28 | 6.0.2, 5.2.11, 4.2.28 |
As the CVE record by DSF states it, last updated July 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | Django | >= 6.0a1, < 6.0.2 | 6.0.2 | GHSA-gvg8-93h5-g6qq |
| PyPI | Django | >= 5.2a1, < 5.2.11 | 5.2.11 | GHSA-gvg8-93h5-g6qq |
| PyPI | Django | >= 4.2a1, < 4.2.28 | 4.2.28 | GHSA-gvg8-93h5-g6qq |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 5, 2026. Summary: Django has an SQL Injection issue.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| djangoproject | django | from 4.2 before 4.2.28 | application |
| djangoproject | django | from 5.2 before 5.2.11 | application |
| djangoproject | django | from 6.0 before 6.0.2 | application |
NVD analysis (status Modified), last modified July 15, 2026, 02:18 UTC.
How severe is CVE-2026-1287?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | CISA-ADP |
| High 8.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L | redhat-SADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-1287 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, February 3, 2026)
- EPSS
- 0.84% probability of exploitation activity in the next 30 days, percentile 59.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and 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://access.redhat.com/security/cve/CVE-2026-1287 vdb-entry, x_refsource_REDHAT
- RHBZ#2436339 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1287.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:3959 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:5971 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:3958 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:5970 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:14835 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:3962 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:3960 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:2694 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6291 vendor-advisory, x_refsource_REDHAT
Who found and reported it?
- Solomon Kebede (reporter)
- Jake Howard (remediation developer)
- Jacob Walls (coordinator)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 21, 2026
- Published
- February 3, 2026, 14:36 UTC
- CVE record updated
- July 15, 2026, 01:22 UTC by DSF
- NVD
- Modified, last modified July 15, 2026, 02:18 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Django?
- Dec 2, 2026CVE-2026-132809 djangoproject Django: incorrect Calculation of Buffer Size
- Dec 2, 2026CVE-2026-132092 djangoproject Django: SQL injection
- Dec 2, 2026CVE-2026-127929 djangoproject Django: information disclosure
- Dec 2, 2026CVE-2026-125673 djangoproject Django: improper Resolution of Path Equivalence
- Dec 2, 2026CVE-2026-124827 djangoproject Django: external Control of File Name or Path
- Dec 2, 2026CVE-2026-119642 djangoproject Django: information disclosure
- Dec 2, 2026CVE-2026-115868 djangoproject Django: cross-site scripting (XSS)
- Nov 3, 2026CVE-2026-114582 djangoproject Django: server-side request forgery (SSRF)
Questions about CVE-2026-1287
Is CVE-2026-1287 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.84% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of djangoproject Django are affected by CVE-2026-1287?
Django from 6.0a1 before 6.0.2, Django from 5.2a1 before 5.2.11 and Django from 4.2a1 before 4.2.28, per the GitHub advisory GHSA-gvg8-93h5-g6qq. The tables above give every range the sources list.
Which version fixes CVE-2026-1287?
6.0.2, 5.2.11 and 4.2.28, per the GitHub advisory GHSA-gvg8-93h5-g6qq. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-1287?
Medium (5.4, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2026-1287?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.