SQL Injection Affecting django package, versions [,4.2.26)[5.0a1,5.1.14)[5.2a1,5.2.8)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-13836728
  • published6 Nov 2025
  • disclosed5 Nov 2025
  • creditcyberstan

Introduced: 5 Nov 2025

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

How to fix?

Upgrade Django to version 4.2.26, 5.1.14, 5.2.8 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 _connector argument in the QuerySet.filter, QuerySet.exclude, QuerySet.get, and Q objects. A dictionary using dictionary expansion that is supplied as the _connector value can allow attackers to execute malicious SQL.

CVSS Base Scores

version 4.0
version 3.1