| 1 |
========================== |
| 2 |
Django 5.2.7 release notes |
| 3 |
========================== |
| 4 |
|
| 5 |
*October 1, 2025* |
| 6 |
|
| 7 |
Django 5.2.7 fixes one security issue with severity "high", one security issue |
| 8 |
with severity "low", and one bug in 5.2.6. Also, the latest string translations |
| 9 |
from Transifex are incorporated. |
| 10 |
|
| 11 |
CVE-2025-59681: Potential SQL injection in ``QuerySet.annotate()``, ``alias()``, ``aggregate()``, and ``extra()`` on MySQL and MariaDB |
| 12 |
====================================================================================================================================== |
| 13 |
|
| 14 |
:meth:`.QuerySet.annotate`, :meth:`~.QuerySet.alias`, |
| 15 |
:meth:`~.QuerySet.aggregate`, and :meth:`~.QuerySet.extra` methods were subject |
| 16 |
to SQL injection in column aliases, using a suitably crafted dictionary, with |
| 17 |
dictionary expansion, as the ``**kwargs`` passed to these methods (follow up to |
| 18 |
:cve:`2022-28346`). |
| 19 |
|
| 20 |
CVE-2025-59682: Potential partial directory-traversal via ``archive.extract()`` |
| 21 |
=============================================================================== |
| 22 |
|
| 23 |
The ``django.utils.archive.extract()`` function, used by |
| 24 |
:option:`startapp --template` and :option:`startproject --template`, allowed |
| 25 |
partial directory-traversal via an archive with file paths sharing a common |
| 26 |
prefix with the target directory (follow up to :cve:`2021-3281`). |
| 27 |
|
| 28 |
Bugfixes |
| 29 |
======== |
| 30 |
|
| 31 |
* Fixed a regression in Django 5.2 that reduced the color contrast of |
| 32 |
the chosen label of ``filter_horizontal`` and ``filter_vertical`` widgets |
| 33 |
within a ``TabularInline`` (:ticket:`36601`). |