ADVISORIES

Vulnerability

CVE-2025-59681

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

24 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALPINE-CVE-2025-59681

    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…

    CVE-2025-59681 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2025-59681
    CVE-2025-59681 Alpine Updated 18 November 2026
  • CGA-h86q-qvpq-rx5h
    CVE-2025-59681 Chainguard Updated 5 November 2026
  • CGA-qmh9-xcxq-v8cm
    CVE-2025-59681 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2025-59681

    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…

    CVE-2025-59681 Debian Updated 13 October 2026
  • DLA-4324-1

    python-django - security update

    CVE-2025-59681CVE-2025-59682 Debian Updated 20 November 2026
  • DSA-6117-1

    python-django - security update

    CVE-2025-13372CVE-2025-57833CVE-2025-59681CVE-2025-59682 Debian Updated 20 November 2026
  • DSA-6136-1

    python-django - security update

    CVE-2019-14232CVE-2023-41164CVE-2023-43665CVE-2024-24680 Debian Updated 20 November 2026
  • GHSA-hpr9-3m2g-3j9p

    Django vulnerable to SQL injection in column aliases

    High CVE-2025-59681 PyPI Updated 10 September 2026
  • OESA-2025-2378

    python-django security update

    Critical CVE-2025-59681CVE-2025-59682 openEuler Updated 18 August 2026
  • OESA-2025-2379

    python-django security update

    Critical CVE-2025-59681CVE-2025-59682 openEuler Updated 18 August 2026
  • OESA-2025-2460

    python-django security update

    Critical CVE-2025-59681CVE-2025-59682 openEuler Updated 18 August 2026
  • OESA-2025-2461

    python-django security update

    Critical CVE-2025-59681CVE-2025-59682 openEuler Updated 18 August 2026
  • OESA-2025-2462

    python-django security update

    Critical CVE-2025-59681CVE-2025-59682 openEuler Updated 18 August 2026
  • OESA-2025-2463

    python-django security update

    Critical CVE-2025-59681CVE-2025-59682 openEuler Updated 18 August 2026
  • PYSEC-2025-106

    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…

    CVE-2025-59681 PyPI Updated 10 June 2026
  • SUSE-SU-2025:03446-1

    Security update for python-Django

    CVE-2025-59681CVE-2025-59682 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2025-59681

    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…

    CVE-2025-59681 Ubuntu Updated 20 May 2026
  • USN-7794-1

    python-django vulnerabilities

    CVE-2025-59681CVE-2025-59682 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2025:15596-1

    python311-Django4-4.2.25-1.1 on GA media

    CVE-2025-59681CVE-2025-59682 openSUSE Updated 23 March 2026
  • openSUSE-SU-2025:15598-1

    python311-Django-5.2.7-1.1 on GA media

    CVE-2025-59681CVE-2025-59682 openSUSE Updated 23 March 2026
  • openSUSE-SU-2025:20022-1

    Security update for python-Django

    CVE-2025-59681CVE-2025-59682 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:10005-1

    python312-Django6-6.0-1.1 on GA media

    CVE-2015-3982CVE-2015-5145CVE-2015-5963CVE-2016-7401 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:11270-1

    python313-Django5-5.2.16-1.1 on GA media

    CVE-2015-3982CVE-2015-5145CVE-2015-5963CVE-2016-7401 openSUSE Updated 15 July 2026

References