Commit graph

14476 commits

Author SHA1 Message Date
Natalia
4f46d1f433 [6.0.x] Updated man page for Django 6.0. 2025-12-03 13:16:52 -03:00
Jacob Walls
a9f5ca5c58 [6.0.x] Refs #35859 -- Clarified Tasks ref and topics docs regarding available backends.
Backport of d3f142f2cd from main.
2025-12-03 13:09:57 -03:00
Natalia
45f9e0e969 [6.0.x] Finalized release notes for Django 6.0.
Backport of ea4920174e from main.
2025-12-03 12:48:43 -03:00
Adam Johnson
ac44a55c80 [6.0.x] Made cosmetic edits to docs/releases/6.0.txt.
Backport of fe42aa6100 from main.
2025-12-03 12:48:34 -03:00
Natalia
1f8f36ee79 [6.0.x] Added CVE-2025-13372 and CVE-2025-64460 to security archive.
Backport of d0d596042e from main.
2025-12-02 11:31:34 -03:00
Natalia
224fc79c02 [6.0.x] Added stub release notes for 5.2.10.
Backport of 8d4ec9949a from main.
2025-12-02 11:31:34 -03:00
Shai Berger
1dbd07a608 [6.0.x] Fixed CVE-2025-64460 -- Corrected quadratic inner text accumulation in XML serializer.
Previously, `getInnerText()` recursively used `list.extend()` on strings,
which added each character from child nodes as a separate list element.
On deeply nested XML content, this caused the overall deserialization
work to grow quadratically with input size, potentially allowing
disproportionate CPU consumption for crafted XML.

The fix separates collection of inner texts from joining them, so that
each subtree is joined only once, reducing the complexity to linear in
the size of the input. These changes also include a mitigation for a
xml.dom.minidom performance issue.

Thanks Seokchan Yoon (https://ch4n3.kr/) for report.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 50efb718b3 from main.
2025-12-02 09:24:55 -03:00
Jacob Walls
56aea00c3c [6.0.x] Fixed CVE-2025-13372 -- Protected FilteredRelation against SQL injection in column aliases on PostgreSQL.
Follow-up to CVE-2025-57833.

Thanks Stackered for the report, and Simon Charette and Mariusz Felisiak
for the reviews.

Backport of 5b90ca1e75 from main.
2025-12-02 09:24:32 -03:00
Jacob Walls
ec7327453d [6.0.x] Fixed #36712 -- Evaluated type annotations lazily in template tag registration.
Ideally, this will be reverted when an upstream solution is available for
https://github.com/python/cpython/issues/141560.

Thanks Patrick Rauscher for the report and Augusto Pontes for the
first iteration and test.

Backport of 34186e731c from main.
2025-12-01 20:49:53 -05:00
Rida Zouga
9cfdab2e8d [6.0.x] Added link to Python Pickle documentation in docs/topics/cache.txt.
Co-authored-by: Rida Zouga <ridazouga@gmail.com>
Backport of 3ea0195ca5 from main
2025-11-30 08:30:30 +01:00
Bruno Alla
d17e646fe5 [6.0.x] Fixed outdated redis-py link in cache docs.
Backport of 7b32485ee9 from main
2025-11-27 17:12:41 +01:00
Tim Schilling
cf2d05ba1e [6.0.x] Highlighted community package upgrade utilities in docs/howto/upgrade-version.txt.
Backport of bd7940982d from main.
2025-11-27 09:32:47 -03:00
Natalia
4b8563e9f6 [6.0.x] Included usage of new scripts in docs/internals/howto-release-django.txt.
Backport of 60b08ad5e1 from main.
2025-11-26 20:06:48 -03:00
Natalia
1f349005f8 [6.0.x] Refs #36743 -- Added missing release notes for 5.1.15 and 4.2.27.
The fix landed in a8cf8c292c will be
backported to 5.1 and 4.2 since the 2048 limit was rolled out as part of
the security release for CVE-2025-64458.

Backport of 18b13cf6c4 from main.
2025-11-26 20:00:26 -03:00
varunkasyap
ce7d65fc81 [6.0.x] Fixed #36743 -- Increased URL max length enforced in HttpResponseRedirectBase.
Refs CVE-2025-64458.

The previous limit of 2048 characters reused the URLValidator constant
and proved too restrictive for legitimate redirects to some third-party
services. This change introduces a separate `MAX_URL_REDIRECT_LENGTH`
constant (defaulting to 16384) and uses it in HttpResponseRedirectBase.

Thanks Jacob Walls for report and review.

Backport of a8cf8c292c from main.
2025-11-26 17:19:18 -03:00
Cha Hwa Young
122b2dc569 [6.0.x] Fixed #31506 -- Clarified that ExpressionWrapper does not perform database casts.
Added warning in DateField documentation about type differences when using
timedelta on PostgreSQL and MySQL. Mentioned Cast() and integer arithmetic
solutions.

Backport of 55af4749b9 from main.
2025-11-26 08:34:35 -05:00
Natalia
938de87854 [6.0.x] Added stub release notes and release date for 5.2.9, 5.1.15, and 4.2.27.
Backport of d62e811acf from main.
2025-11-25 15:14:15 -03:00
Simon Charette
abce629946 [6.0.x] Fixed #36751 -- Fixed empty filtered aggregation crash over annotated queryset.
Regression in b8e5a8a9a2.

Refs #36404.

The replace_expressions method was innapropriately dealing with falsey
but not None source expressions causing them to also be potentially
evaluated when __bool__ was invoked (e.g. QuerySet.__bool__ evaluates
the queryset).

The changes introduced in b8e5a8a9a2, which were to deal with a similar
issue, surfaced the problem as aggregation over an annotated queryset
requires an inlining (or pushdown) of aggregate references which is
achieved through replace_expressions.

In cases where an empty Q object was provided as an aggregate filter,
such as when the admin facetting feature was used as reported, it would
wrongly be turned into None, instead of an empty WhereNode, causing a
crash at aggregate filter compilation.

Note that the crash signature differed depending on whether or not the
backend natively supports aggregate filtering
(supports_aggregate_filter_clause) as the fallback, which makes use
Case / When expressions, would result in a TypeError instead of a
NoneType AttributeError.

Thanks Rafael Urben for the report, Antoliny and Youngkwang Yang for
the triage.
Backport of 2a6e0bd72d from main
2025-11-24 12:15:08 +01:00
Jacob Walls
abb9aab00e [6.0.x] Added GitHub Actions linter (zizmor).
At the direction of the Security Team. Thanks Markus Holtermann,
Jake Howard, and Natalia Bidart for reviews.

Backport of 09d4bf5cd9 from main.
2025-11-21 14:37:19 -05:00
Jacob Walls
2f77776f00 [6.0.x] Added missing ticket links in docs/releases/5.2.8.txt.
Backport of 8ce3e1f9d0 from main.
2025-11-20 17:32:01 -05:00
Chris Wesseling
161e543485 [6.0.x] Fixed #36748 -- Filtered non-standard placeholders from UNNEST queries.
Backport of 5834643f43 from main.
2025-11-20 17:23:30 -05:00
nessita
b72ee77f6b [6.0.x] Ensured that Sitemap.items is described as a method in docs/ref/contrib/sitemaps.txt.
Backport of ee2e0e2028 from main.
2025-11-20 15:44:33 -03:00
varunkasyap
ef4715ef69 [6.0.x] Fixed #36733 -- Escaped attributes in Stylesheet.__str__().
Thanks Mustafa Barakat for the report, Baptiste Mispelon for
the triage, and Jake Howard for the review.

Backport of e05f2a7569 from main.
2025-11-18 17:16:27 -05:00
Annabelle Wiegart
1e8d6a2e1d [6.0.x] Fixed #26379 -- Doc'd that the first filter() on a many-to-many relation is sticky.
Backport of 3c005b5f79 from main.
2025-11-17 15:15:41 -05:00
Kasyap Pentamaraju
37b5dced86 [6.0.x] Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries.
Backport of 7e765a6859 from main.
2025-11-13 11:19:05 -05:00
Clifford Gama
d6af15d44d [6.0.x] Fixed typo in docs/ref/databases.txt.
Backport of 2b0f24e622 from main.
2025-11-10 18:00:19 -03:00
Clifford Gama
37ab85dd8d [6.0.x] Clarified "get_db_prep_value" default result in docs/ref/models/fields.txt.
Backport of c135be349d from main.
2025-11-10 14:12:06 -03:00
Hong Xu
cdae630530 [6.0.x] Clarified EmailValidator docs to specify it validates an email address.
Updated the EmailValidator docs in docs/ref/validators.txt to explicitly
state that it validates an email address, to avoid confusion with
validating email message content.

Backport of a4f7674134 from main.
2025-11-10 12:52:53 -03:00
Tim Schilling
fb2fb2de4d [6.0.x] Removed community packages admonition from settings docs.
Backport of 5ef870fbc5 from main.
2025-11-06 15:52:36 -05:00
Tim Schilling
03f31bcddf [6.0.x] Added community package email backends mention to docs.
Co-authored-by: Clifford Gama <cliffygamy@gmail.com>

Backport of 47ac64ed8b from main.
2025-11-06 15:52:25 -05:00
Natalia
cdb93b7877 [6.0.x] Added CVE-2025-64458 and CVE-2025-64459 to security archive.
Backport of c5a107e824 from main.
2025-11-05 11:18:19 -03:00
Natalia
ef4e0bcdd5 [6.0.x] Added stub release notes for 5.2.9.
Backport of 6e18c078d5 from main.
2025-11-05 11:18:09 -03:00
Jacob Walls
06dd38324a [6.0.x] Fixed CVE-2025-64459 -- Prevented SQL injections in Q/QuerySet via the _connector kwarg.
Thanks cyberstan for the report, Sarah Boyce, Adam Johnson, Simon
Charette, and Jake Howard for the reviews.

Backport of 98e642c691 from main.
2025-11-05 09:29:44 -03:00
Jacob Walls
6e13348436 [6.0.x] Fixed CVE-2025-64458 -- Mitigated potential DoS in HttpResponseRedirect/HttpResponsePermanentRedirect on Windows.
Thanks Seokchan Yoon for the report, Markus Holtermann for the
triage, and Jake Howard for the review.

Follow-up to CVE-2025-27556 and 39e2297210.

Backport of c880530ddd from main.
2025-11-05 09:28:56 -03:00
Hal Blackburn
12042b8978 [6.0.x] Fixed #36704 -- Fixed system check error for proxy model with a composite pk.
Proxy models subclassing a model with a CompositePrimaryKey were
incorrectly reporting check errors because the check that requires only
local fields to be used in a composite pk was evaluated against the proxy
subclass, which has no fields.

To fix this, composite pk field checks are not evaluated against
proxy subclasses, as none of the checks are applicable to proxy
subclasses. This also has the benefit of not double-reporting real check
errors from an invalid superclass pk.

Thanks Clifford Gama for the review.

Backport of 74564946c3 from main.
2025-11-04 11:59:49 -05:00
ontowhee
1b9f7a1ddf [6.0.x] Updated ticket triage process diagram and contributing docs.
Backport of eaf7b563a5 from main.
2025-11-04 09:40:43 -03:00
Tim Schilling
a36108094d [6.0.x] Added community package storage backends mention to docs.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>

Backport of 340e4f832e from main.
2025-10-30 17:22:24 -04:00
Jacob Walls
9e87170674 [6.0.x] Added stub release notes and release date for 5.2.8, 5.1.14, and 4.2.26.
Backport of ab108bf94d from main.
2025-10-29 14:59:34 -03:00
Kasyap Pentamaraju
f13e6c90cf [6.0.x] Fixed #36681 -- Removed English pluralization bias from example in docs/topics/i18n/translation.txt.
Backport of 0ea01101c3 from main.
2025-10-27 14:42:45 -04:00
Annabelle Wiegart
f647d864c2 [6.0.x] Fixed #35095 -- Clarified Swiss number formatting in docs/topics/i18n/formatting.txt.
Co-authored-by: Ahmed Nassar <a.moh.nassar00@gmail.com>

Backport of 7423918125 from main.
2025-10-23 10:13:28 -04:00
Natalia
ee5cc0b7d6 [6.0.x] Made cosmetic edits to docs/releases/6.0.txt.
Backport of 42d6e20feb from main.
2025-10-22 15:38:28 -03:00
Mariusz Felisiak
195836b69a [6.0.x] Refs #36005 -- Bumped minimum supported versions of docutils to 0.22.
Backport of ca3e0484ef from main.
2025-10-19 20:16:37 +02:00
Mariusz Felisiak
a27c2ef906 [6.0.x] Refs #35844 -- Doc'd Python 3.14 compatibility.
Backport of 56977b466c from main.
2025-10-17 19:26:34 +02:00
aj2s
fa772f4014 [6.0.x] Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices.
Backport of f715bc8990 from main.
2025-10-17 10:22:04 -04:00
Jacob Walls
887e897287 [6.0.x] Bumped minimum isort version to 7.0.0.
Added ignores relating to https://github.com/PyCQA/isort/issues/2352.

Backport of d980d68609 from main.
2025-10-16 14:59:48 -04:00
Jacob Walls
28c95a35fb [6.0.x] Fixed #36648, Refs #33772 -- Accounted for composite pks in first()/last() when aggregating.
Backport of 02eed4f378 from main.
2025-10-14 15:49:48 -04:00
Jacob Walls
a01d85d941 [6.0.x] Removed pre-release wheel-only advice in docs/internals/howto-release-django.txt.
The practice since 2.2a1 (2019) has been to upload source distributions
as well.
Backport of cc9df52666 from main.
2025-10-14 08:46:49 -04:00
Jacob Walls
e96e56e064 [6.0.x] Removed mention of setuptools in docs/internals/contributing/writing-code/unit-tests.txt.
Backport of 1910115807 from main.
2025-10-14 08:42:30 -04:00
lyova24
50d31aeb49 [6.0.x] Cautioned against multi-level relative imports in coding style docs.
Backport of a545eb0c1a from main.
2025-10-13 17:34:14 -04:00
Natalia
12e3aa452a [6.0.x] Added notes about automatic roadmap generation for next version in docs/internals/howto-release-django.txt.
Backport of d5543a23d3 from main.
2025-10-13 17:41:55 -03:00