CVE-2026-1312
Last modified
CVE-2026-1312 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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.. EPSS estimates a 0.80% chance of exploitation in the next 30 days.
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. `.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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 4.2, < 4.2.28 |
| Djangoproject | Django | >= 5.2, < 5.2.11 |
| Djangoproject | Django | >= 6.0, < 6.0.2 |
References
- https://docs.djangoproject.com/en/dev/releases/security/Patch, Vendor Advisory
- https://groups.google.com/g/django-announceRelease Notes
- https://www.djangoproject.com/weblog/2026/feb/03/security-releases/Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-1312?
How severe is CVE-2026-1312?
How do I fix CVE-2026-1312?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-13110The Storegrowth Sales Booster plugin for WordPress is vulner…5.3
- CVE-2026-13113GitLab has remediated an issue in GitLab EE affecting all ve…5.3
- CVE-2026-13114The Motors – Car Dealership & Classified Listings Plugin plu…7.2
- CVE-2026-13116The PDF Invoices & Packing Slips for WooCommerce plugin for …4.3
- CVE-2026-13117An incomplete guard in OpenVPN 2.6.0 through 2.6.20 and 2.7_…8.1
- CVE-2026-13119The Registrations For The Events Calendar plugin for WordPre…6.5
- CVE-2026-13121Parallels RAS Client RDP Backend Service Exposed Dangerous F…7.8
- CVE-2026-13122OpenVPN version 2.6.0 through 2.6.20 and 2.7_alpha1 through …5.3
- CVE-2026-13125GeoWebPlayer (also called "Web Plugin" in the GV-VMS documen…8.8
- CVE-2026-13126The embedded JavaScript in the PDF deleted the pages, making…7.8
- CVE-2026-13127The application opens the PDF file. JavaScript then rewrites…7.8
- CVE-2026-13128Embedding JavaScript within a PDF file will cause the page t…7.8
Are you affected by CVE-2026-1312?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
