CVE-2025-59681

HIGH7.1EPSS 0.01%

python-django - security update

Published: 10/1/2025Modified: 10/7/2025
Also known as:GHSA-hpr9-3m2g-3j9pBIT-django-2025-59681DLA-4324-1PYSEC-2025-106

Description

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).

Affected packages (5)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1HIGH7.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N

References (11)