SQL Injection Vulnerability in Django Framework
CVE-2025-59681

7.1HIGH

Key Information:

Status
Vendor
CVE Published:
1 October 2025

What is CVE-2025-59681?

A vulnerability in the Django framework allows for SQL injection through the use of certain methods such as QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra(). This issue arises when unvalidated user input is passed in a crafted dictionary as **kwargs, potentially enabling attackers to manipulate SQL queries on MySQL and MariaDB databases. System administrators and developers are encouraged to update to the latest Django versions to mitigate this risk.

Affected Version(s)

Django 4.2 < 4.2.25

Django 5.1 < 5.1.13

Django 5.2 < 5.2.7

References

CVSS V3.1

Score:
7.1
Severity:
HIGH
Confidentiality:
High
Integrity:
Low
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.