Skip to content
Sign in
CVE-2026-1312Not scoredCWE-89

CVE-2026-1312: Potential SQL injection via QuerySet.order_by and FilteredRelation

djangoproject · Django

Vendor fix available · Affected: djangoproject · Exploitation: public proof of concept (unverified)

ExploitationProof of concept public

Not in CISA KEV as of catalogue 2026.11.13 (13 Nov)

  1. In CISA KEV: not seen
  2. Exploited (reported): not seen
  3. Scanning observed: not seen
  4. Proof of concept public2 public GitHub repositories (unverified), listed by PoC-in-GitHub21 Feb
  5. Not established: not seen
0.9%probability of exploitation in the next 30 days
60th percentile
050100

Higher than 60% of scored CVEs

Not scored yet. NVD has not published a CVSS score.

DescriptionNVD

An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `.QuerySet.order_by()` is subject to SQL injection in column aliases containing periods when the same alias is, using a suitably crafted dictionary, with dictionary expansion, used in `FilteredRelation`. 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.

On the Atlas

Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.

Open the Atlas
Exploitation
Unlikely (under 1%). EPSS under 1%, or no score yet.
CISA KEV
Not listed
Public check
No public nuclei template
Published
February 2026

What changed

  1. PoC-in-GitHub lists 2 public GitHub repositories (unverified) PoC-in-GitHub

Coverage1 article · 1 outlet

First in our coverage: SecurityOnline, 4 Feb.

  1. Urgent Django Update: Patches 3 Critical SQL Injections & DoS Risks
    SecurityOnline · first in our coverage · mentions it in passing

New articles also arrive in the RSS feed.

References

Updated AboutDevelopersSign in