CVE-2025-59681 - CVE House
Back to Database
Status published High CVE-2025-59681

An issue was discovered in Django 4.2 before 4.2.25, 5.1...

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-59681

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

djangoproject

View all reports →

Affected Software

Django
Vulnerable Versions:
4.2, 5.1, 5.2

Timeline

Official Publish: October 1st, 2025
Last Modified: November 4th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N

Weaknesses (CWE)