Skip to main content
VulnerabilityPublished Updated

CVE-2026-1287: djangoproject Django · SQL Injection

Affects djangoproject DjangoSource CVE Database V5

0

Not known to be exploited · CVSS 5.4 Medium · fixed in 6.0.2 : update djangoproject Django when convenient.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.0.2, 5.2.11, 4.2.28
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade Django and django to 6.0.2, 5.2.11 or 4.2.28.

Affected software

ProductAffectedFixed in
djangoprojectDjangoAffected
  • >=6.0 <6.0.2
Fixed in
  • 6.0.2
djangoprojectDjangoAffected
  • >=5.2 <5.2.11
Fixed in
  • 5.2.11
djangoprojectDjangoAffected
  • >=4.2 <4.2.28
Fixed in
  • 4.2.28
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • <6.0.2
  • <5.2.11
  • <4.2.28
Fixed in
  • 6.0.2
  • 5.2.11
  • 4.2.28
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • >=6.0 <6.0.2
  • >=5.2 <5.2.11
  • >=4.2 <4.2.28
Fixed in
  • 6.0.2
  • 5.2.11
  • 4.2.28

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Official patches are available for Django versions 6.0.2 and later, 5.2.11 and later, and 4.2.28 and later. Users should upgrade to these fixed versions to remediate the vulnerability. Red Hat has released security advisories and errata with updated packages addressing this issue. Users of affected Red Hat products should apply the relevant updates as per the vendor guidance. There is no indication that no action is required or that the issue is already mitigated without patching. Patch status is confirmed by vendor 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.

References

Community reviews

Loading reviews…