Debian Codegraph @

docs/releases/4.2.27.txt

raw
1 ===========================
2 Django 4.2.27 release notes
3 ===========================
4
5 *December 2, 2025*
6
7 Django 4.2.27 fixes one security issue with severity "high", one security issue
8 with severity "moderate", and one bug in 4.2.26.
9
10 CVE-2025-13372: Potential SQL injection in ``FilteredRelation`` column aliases on PostgreSQL
11 ============================================================================================
12
13 :class:`.FilteredRelation` was subject to SQL injection in column aliases,
14 using a suitably crafted dictionary, with dictionary expansion, as the
15 ``**kwargs`` passed to :meth:`.QuerySet.annotate` or :meth:`.QuerySet.alias` on
16 PostgreSQL.
17
18 CVE-2025-64460: Potential denial-of-service vulnerability in XML ``Deserializer``
19 =================================================================================
20
21 :ref:`XML Serialization <serialization-formats-xml>` was subject to a potential
22 denial-of-service attack due to quadratic time complexity when deserializing
23 crafted documents containing many nested invalid elements. The internal helper
24 ``django.core.serializers.xml_serializer.getInnerText()`` previously
25 accumulated inner text inefficiently during recursion. It now collects text per
26 element, avoiding excessive resource usage.
27
28 Bugfixes
29 ========
30
31 * Fixed a regression in Django 4.2.26 where ``DisallowedRedirect`` was raised
32 by :class:`~django.http.HttpResponseRedirect` and
33 :class:`~django.http.HttpResponsePermanentRedirect` for URLs longer than 2048
34 characters. The limit is now 16384 characters (:ticket:`36743`).