SQL Injection in Djangoproject Django

CVE-2026-1312

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, wit…

Vulnerability class: SQL Injection

EPSS: 0.008 (52.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2026-1312?
CVE-2026-1312 is a medium-severity vulnerability in Djangoproject Django, classified under SQL Injection. CVSS score: 5.4/10. Published 2026-02-03.
How severe is CVE-2026-1312?
Medium severity. CVSS v3 base score is 5.4 out of 10.
Is CVE-2026-1312 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.