{"cve":"CVE-2026-1312","nvd":{"published":"2026-02-03T15:16:13.833","modified":"2026-07-15T02:18:14.380","status":"Modified","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.\n`.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`.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Solomon Kebede for reporting this issue.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4},"cwes":["CWE-89"],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/g/django-announce","https://www.djangoproject.com/weblog/2026/feb/03/security-releases/","https://access.redhat.com/errata/RHSA-2026:14835","https://access.redhat.com/errata/RHSA-2026:2694"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T22:22:27.261130201+00:00"},"epss":{"cve":"CVE-2026-1312","score":0.00897,"percentile":0.59589,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6426-9fv3-65x8","url":"https://osv.dev/vulnerability/GHSA-6426-9fv3-65x8","summary":"Django has an SQL Injection issue","modified":"2026-09-10T03:50:34.261179848Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=6.0a1 <6.0.2"],"fixed":["6.0.2"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.2a1 <5.2.11"],"fixed":["5.2.11"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2a1 <4.2.28"],"fixed":["4.2.28"]}]},{"id":"PYSEC-2026-47","url":"https://osv.dev/vulnerability/PYSEC-2026-47","summary":"","modified":"2026-06-10T17:01:10.011875935Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.28",">=5.2 <5.2.11",">=6.0 <6.0.2"],"fixed":["4.2.28","5.2.11","6.0.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}