Live threats

All CVEs / Djangoproject

CVE-2026-1312Djangoproject Django

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
—
Auth required
Yes
Published
Feb 3, 2026
Updated
Jul 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 6.0a1 < 6.0.2 6.0.2 pip install "django>=6.0.2"
PyPI django ≥ 5.2a1 < 5.2.11 5.2.11 pip install "django>=5.2.11"
PyPI django ≥ 4.2a1 < 4.2.28 4.2.28 pip install "django>=4.2.28"
PyPI django ≥ 4.2 < 4.2.28 4.2.28 pip install "django>=4.2.28"
PyPI django ≥ 5.2 < 5.2.11 5.2.11 pip install "django>=5.2.11"
PyPI django ≥ 6.0 < 6.0.2 6.0.2 pip install "django>=6.0.2"

Per OSV / GitHub Advisories (GHSA-6426-9fv3-65x8, PYSEC-2026-47). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.28
djangoprojectdjango≥ 5.2 < 5.2.11
djangoprojectdjango≥ 6.0 < 6.0.2

Official advisories

Also: Red Hat (+2), SUSE (+3)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.