SQL Injection Affecting django package, versions [,4.2.27)[5.0a1, 5.1.15)[5.2a1, 5.2.9)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DJANGO-14157810
  • published3 Dec 2025
  • disclosed2 Dec 2025
  • creditStackered

Introduced: 2 Dec 2025

NewCVE-2025-13372  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade Django to version 4.2.27, 5.1.15, 5.2.9 or higher.

Overview

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Affected versions of this package are vulnerable to SQL Injection via the FilteredRelation column aliases. When a malicious dictionary expansion is passed in as the **kwargs argument to QuerySet.annotate() or QuerySet.alias() on PostgreSQL, its contents can be used to execute SQL.

CVSS Base Scores

version 4.0
version 3.1