Vulnerability
CVE-2025-59681
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB).
24 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-CVE-2025-59681
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column…
- ALPINE-EDGE-CVE-2025-59681
- CGA-h86q-qvpq-rx5h
- CGA-qmh9-xcxq-v8cm
-
DEBIAN-CVE-2025-59681
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column…
-
DLA-4324-1
python-django - security update
-
DSA-6117-1
python-django - security update
-
DSA-6136-1
python-django - security update
-
GHSA-hpr9-3m2g-3j9p
Django vulnerable to SQL injection in column aliases
-
OESA-2025-2378
python-django security update
-
OESA-2025-2379
python-django security update
-
OESA-2025-2460
python-django security update
-
OESA-2025-2461
python-django security update
-
OESA-2025-2462
python-django security update
-
OESA-2025-2463
python-django security update
-
PYSEC-2025-106
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column…
-
SUSE-SU-2025:03446-1
Security update for python-Django
-
UBUNTU-CVE-2025-59681
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column…
-
USN-7794-1
python-django vulnerabilities
-
openSUSE-SU-2025:15596-1
python311-Django4-4.2.25-1.1 on GA media
-
openSUSE-SU-2025:15598-1
python311-Django-5.2.7-1.1 on GA media
-
openSUSE-SU-2025:20022-1
Security update for python-Django
-
openSUSE-SU-2026:10005-1
python312-Django6-6.0-1.1 on GA media
-
openSUSE-SU-2026:11270-1
python313-Django5-5.2.16-1.1 on GA media