Live threats

All CVEs / Djangoproject

CVE-2025-13372Djangoproject Django

Medium 4.3 No auth needed

Priority
41
CVSS 3.1
4.3
EPSS
0.5%
probability of exploitation in 30 days · percentile 40
Auth required
No
Published
Dec 2, 2025
Updated
Oct 18, 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:N/UI:R/S:U/C:L/I:N/A:N

What happens

An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. 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 Stackered for reporting this issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 5.2a1 < 5.2.9 5.2.9 pip install "django>=5.2.9"
PyPI django ≥ 5.1a1 < 5.1.15 5.1.15 pip install "django>=5.1.15"
PyPI django ≥ 4.2a1 < 4.2.27 4.2.27 pip install "django>=4.2.27"
PyPI django ≥ 4.2 < 4.2.27 4.2.27 pip install "django>=4.2.27"
PyPI django ≥ 5.1 < 5.1.15 5.1.15 pip install "django>=5.1.15"
PyPI django ≥ 5.2 < 5.2.9 5.2.9 pip install "django>=5.2.9"

Per OSV / GitHub Advisories (GHSA-rqw2-ghq9-44m7, PYSEC-2025-104). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.27
djangoprojectdjango≥ 5.1 < 5.1.15
djangoprojectdjango≥ 5.2 < 5.2.9

Official advisories

Also: 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.