Debian Codegraph @

docs/releases/4.2.7.txt

raw
1 ==========================
2 Django 4.2.7 release notes
3 ==========================
4
5 *November 1, 2023*
6
7 Django 4.2.7 fixes a security issue with severity "moderate" and several bugs
8 in 4.2.6.
9
10 CVE-2023-46695: Potential denial of service vulnerability in ``UsernameField`` on Windows
11 =========================================================================================
12
13 The :func:`NFKC normalization <python:unicodedata.normalize>` is slow on
14 Windows. As a consequence, ``django.contrib.auth.forms.UsernameField`` was
15 subject to a potential denial of service attack via certain inputs with a very
16 large number of Unicode characters.
17
18 In order to avoid the vulnerability, invalid values longer than
19 ``UsernameField.max_length`` are no longer normalized, since they cannot pass
20 validation anyway.
21
22 Bugfixes
23 ========
24
25 * Fixed a regression in Django 4.2 that caused a crash of
26 ``QuerySet.aggregate()`` with aggregates referencing expressions containing
27 subqueries (:ticket:`34798`).
28
29 * Restored, following a regression in Django 4.2, creating
30 ``varchar/text_pattern_ops`` indexes on ``CharField`` and ``TextField`` with
31 deterministic collations on PostgreSQL (:ticket:`34932`).