Debian Codegraph @

docs/releases/4.0.4.txt

raw
1 ==========================
2 Django 4.0.4 release notes
3 ==========================
4
5 *April 11, 2022*
6
7 Django 4.0.4 fixes two security issues with severity "high" and two bugs in
8 4.0.3.
9
10 CVE-2022-28346: Potential SQL injection in ``QuerySet.annotate()``, ``aggregate()``, and ``extra()``
11 ====================================================================================================
12
13 :meth:`.QuerySet.annotate`, :meth:`~.QuerySet.aggregate`, and
14 :meth:`~.QuerySet.extra` methods were subject to SQL injection in column
15 aliases, using a suitably crafted dictionary, with dictionary expansion, as the
16 ``**kwargs`` passed to these methods.
17
18 CVE-2022-28347: Potential SQL injection via ``QuerySet.explain(**options)`` on PostgreSQL
19 =========================================================================================
20
21 :meth:`.QuerySet.explain` method was subject to SQL injection in option names,
22 using a suitably crafted dictionary, with dictionary expansion, as the
23 ``**options`` argument.
24
25 Bugfixes
26 ========
27
28 * Fixed a regression in Django 4.0 that caused ignoring multiple
29 ``FilteredRelation()`` relationships to the same field (:ticket:`33598`).
30
31 * Fixed a regression in Django 3.2.4 that caused the auto-reloader to no longer
32 detect changes when the ``DIRS`` option of the ``TEMPLATES`` setting
33 contained an empty string (:ticket:`33628`).