VYPR
High severity7.1NVD Advisory· Published Oct 1, 2025· Updated Jun 17, 2026

CVE-2025-59681

CVE-2025-59681

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

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
DjangoPyPI
>= 4.2, < 4.2.254.2.25
DjangoPyPI
>= 5.1, < 5.1.135.1.13
DjangoPyPI
>= 5.2, < 5.2.75.2.7

Affected products

13

Patches

Vulnerability mechanics

References

11

News mentions

0

No linked articles in our index yet.