Debian Codegraph @

docs/releases/5.0.3.txt

raw
1 ==========================
2 Django 5.0.3 release notes
3 ==========================
4
5 *March 4, 2024*
6
7 Django 5.0.3 fixes a security issue with severity "moderate" and several bugs
8 in 5.0.2.
9
10 CVE-2024-27351: Potential regular expression denial-of-service in ``django.utils.text.Truncator.words()``
11 =========================================================================================================
12
13 ``django.utils.text.Truncator.words()`` method (with ``html=True``) and
14 :tfilter:`truncatewords_html` template filter were subject to a potential
15 regular expression denial-of-service attack using a suitably crafted string
16 (follow up to :cve:`2019-14232` and :cve:`2023-43665`).
17
18 Bugfixes
19 ========
20
21 * Fixed a regression in Django 5.0.2 where ``intcomma`` template filter could
22 return a leading comma for string representation of floats (:ticket:`35172`).
23
24 * Fixed a bug in Django 5.0 that caused a crash of ``Signal.asend()`` and
25 ``asend_robust()`` when all receivers were asynchronous functions
26 (:ticket:`35174`).
27
28 * Fixed a regression in Django 5.0.1 where :meth:`.ModelAdmin.lookup_allowed`
29 would prevent filtering against foreign keys using lookups like ``__isnull``
30 when the field was not included in :attr:`.ModelAdmin.list_filter`
31 (:ticket:`35173`).
32
33 * Fixed a regression in Django 5.0 that caused a crash of
34 ``@sensitive_variables`` and ``@sensitive_post_parameters`` decorators on
35 functions loaded from ``.pyc`` files (:ticket:`35187`).
36
37 * Fixed a regression in Django 5.0 that caused a crash when reloading a test
38 database and a base queryset for a base manager used ``prefetch_related()``
39 (:ticket:`35238`).
40
41 * Fixed a bug in Django 5.0 where facet filters in the admin would crash on a
42 ``SimpleListFilter`` using a queryset without primary keys (:ticket:`35198`).