| 1 |
========================== |
| 2 |
Django 5.2.8 release notes |
| 3 |
========================== |
| 4 |
|
| 5 |
*November 5, 2025* |
| 6 |
|
| 7 |
Django 5.2.8 fixes one security issue with severity "high", one security issue |
| 8 |
with severity "moderate", and several bugs in 5.2.7. It also adds compatibility |
| 9 |
with Python 3.14. |
| 10 |
|
| 11 |
CVE-2025-64458: Potential denial-of-service vulnerability in ``HttpResponseRedirect`` and ``HttpResponsePermanentRedirect`` on Windows |
| 12 |
====================================================================================================================================== |
| 13 |
|
| 14 |
Python's :func:`NFKC normalization <python:unicodedata.normalize>` is slow on |
| 15 |
Windows. As a consequence, :class:`~django.http.HttpResponseRedirect`, |
| 16 |
:class:`~django.http.HttpResponsePermanentRedirect`, and the shortcut |
| 17 |
:func:`redirect() <django.shortcuts.redirect>` were subject to a potential |
| 18 |
denial-of-service attack via certain inputs with a very large number of Unicode |
| 19 |
characters (follow up to :cve:`2025-27556`). |
| 20 |
|
| 21 |
CVE-2025-64459: Potential SQL injection via ``_connector`` keyword argument |
| 22 |
=========================================================================== |
| 23 |
|
| 24 |
:meth:`.QuerySet.filter`, :meth:`~.QuerySet.exclude`, :meth:`~.QuerySet.get`, |
| 25 |
and :class:`~.Q` were subject to SQL injection using a suitably crafted |
| 26 |
dictionary, with dictionary expansion, as the ``_connector`` argument. |
| 27 |
|
| 28 |
Bugfixes |
| 29 |
======== |
| 30 |
|
| 31 |
* Added compatibility for ``oracledb`` 3.4.0 (:ticket:`36646`). |
| 32 |
|
| 33 |
* Fixed a bug in Django 5.2 where ``QuerySet.first()`` and ``QuerySet.last()`` |
| 34 |
raised an error on querysets performing aggregation that selected all fields |
| 35 |
of a composite primary key (:ticket:`36648`). |
| 36 |
|
| 37 |
* Fixed a bug in Django 5.2 where proxy models having a ``CompositePrimaryKey`` |
| 38 |
incorrectly raised a ``models.E042`` system check error (:ticket:`36704`). |