Commit Graph

33030 Commits

Author SHA1 Message Date
Natalia
84d09a547f [5.1.x] Added CVE-2025-13372 and CVE-2025-64460 to security archive.
Backport of d0d596042e from main.
2025-12-02 11:35:15 -03:00
Natalia
97ef138abf [5.1.x] Post-release version bump. 2025-12-02 09:42:59 -03:00
Natalia
6ef1f6fbe3 [5.1.x] Bumped version for 5.1.15 release. 5.1.15 2025-12-02 09:42:00 -03:00
Shai Berger
0db9ea4669 [5.1.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:40:12 -03:00
Jacob Walls
9c6a5bde24 [5.1.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:39:56 -03:00
Natalia
e419ad896d [5.1.x] Added script to archive EOL stable branches.
This also fixed a small bash issue in `confirm_release.sh` script.

Backport of 532c1058a7 from main.
2025-11-26 20:07:53 -03:00
Natalia
ca4251d04e [5.1.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:01:39 -03:00
varunkasyap
f3542966c3 [5.1.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:28:45 -03:00
Natalia
cae6f5c3b1 [5.1.x] Added timeout-minutes directive to all GitHub Actions workflows.
GitHub Actions defaults to a 360-minute (6-hour) timeout. We've had jobs
hang due to issues in the parallel test runner, causing them to run for
the full 6 hours. This wastes resources and negatively impacts CI
availability, so explicit timeouts have been added to prevent
long-running hangs.

Backport of e48527f91d from main.
2025-11-26 08:04:42 -05:00
Natalia
6f35c2e1fd [5.1.x] Added stub release notes and release date for 5.1.15 and 4.2.27.
Backport of d62e811acf from main.
2025-11-25 15:19:07 -03:00
Jacob Walls
a9311fcca7 [5.1.x] Configured dangerous-triggers zizmor rule.
Backport of 846613e521 from main.
2025-11-21 14:57:09 -05:00
Jacob Walls
dc29fe1441 [5.1.x] Addressed unpinned-uses zizmor finding.
Backport of 86b8058b40 from main.
2025-11-21 14:56:39 -05:00
Jacob Walls
422091d646 [5.1.x] Simplified actions after applying zizmor auto-fixes.
Backport of 08f4901b3f from main.
2025-11-21 14:55:58 -05:00
Jacob Walls
1e772cda30 [5.1.x] Applied auto-fixes from zizmor findings.
Backport of e8958c4690 from main.
2025-11-21 14:55:36 -05:00
Jacob Walls
728bf62d3a [5.1.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:54:08 -05:00
Natalia
b3870a2421 [5.1.x] Added scripts for building and releasing Django artifacts.
Backport of a523d5c833 from main.
2025-11-21 15:38:49 -03:00
Natalia
e106aabf11 [5.1.x] Skipped scripts/ folder from built release artifacts.
Backport of 971c76f735 from main.
2025-11-21 15:38:49 -03:00
Markus Holtermann
da4f87dfdc [5.1.x] Fixed unsafe variable interpolation in GitHub Action workflow.
Thank you Davide Netti for the report and initial patch.

Co-authored-by: Davide Netti <davide.netti4@gmail.com>

Backport of 01c70ba148 from main.
2025-11-10 15:53:50 -03:00
Natalia
607d9d01af [5.1.x] Added CVE-2025-64458 and CVE-2025-64459 to security archive.
Backport of c5a107e824 from main.
2025-11-05 11:19:09 -03:00
Natalia
3db038b9b0 [5.1.x] Post-release version bump. 2025-11-05 09:51:54 -03:00
Natalia
da443c4d54 [5.1.x] Bumped version for 5.1.14 release. 5.1.14 2025-11-05 09:46:34 -03:00
Jacob Walls
4624ed769c [5.1.x] Refs CVE-2025-64459 -- Avoided propagating invalid arguments to Q on dictionary expansion.
Backport of 3c3f463577 from main.
2025-11-05 09:44:35 -03:00
Jacob Walls
72d2c87431 [5.1.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 c880530ddd from main.
2025-11-05 09:44:22 -03:00
Jacob Walls
3790593781 [5.1.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:43:51 -03:00
Jacob Walls
ec3420edfa [5.1.x] Added stub release notes and release date for 5.1.14 and 4.2.26.
Backport of ab108bf94d from main.
2025-10-29 15:01:46 -03:00
Mariusz Felisiak
c361494cbb [5.1.x] Made RemoteTestResultTest.test_pickle_errors_detection() compatible with tblib 3.2+.
tblib 3.2+ makes exception subclasses with __init__() and the default
__reduce__() picklable. This broke the test for
RemoteTestResult._confirm_picklable(), which expects a specific
exception to fail unpickling.

https://github.com/ionelmc/python-tblib/blob/master/CHANGELOG.rst#320-2025-10-21

This fix defines ExceptionThatFailsUnpickling.__reduce__() in a way
that pickle.dumps(obj) succeeds, but pickle.loads(pickle.dumps(obj))
raises TypeError.

Refs #27301. This preserves the intent of the regression test from
52188a5ca6 without skipping it.

Backport of 548209e620 from main.
2025-10-22 15:21:29 -03:00
Mariusz Felisiak
a6294d7d26 [5.1.x] Fixed RelatedGeoModelTest.test_related_union_aggregate() test on Oracle and GEOS 3.12+.
Backport of 344ae16e1e from main
2025-10-20 16:06:52 +02:00
Mariusz Felisiak
99e033694c [5.1.x] Refs #36646 -- Doc'd that oracledb < 3.3.0 is required. 2025-10-10 23:08:19 +02:00
David Smith
475f61f78b [5.1.x] Fixed OGRInspectTest.test_time_field with memory Spatialite database.
Backport of 82b3b84a78 from main
2025-10-10 16:05:35 +02:00
Michiel W. Beijen
7da2bf97d6 [5.1.x] Fixed #35961 -- Migrated license metadata in pyproject.toml to conform PEP 639.
See https://peps.python.org/pep-0639/ and
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>

Backport of 96a7a65216 from main.
2025-10-08 16:44:11 -03:00
Mariusz Felisiak
360400f616 [5.1.x] Rewrapped security archive at 79 chars.
Backport of 1499c95d99 from main.
2025-10-01 16:25:37 -04:00
Jacob Walls
9f6067f873 [5.1.x] Added CVE-2025-59681 and CVE-2025-59682 to security archive.
Backport of 43d84aef04 from main.
2025-10-01 10:39:52 -04:00
Jacob Walls
8a3ec7cd68 [5.1.x] Post-release version bump. 2025-10-01 09:04:21 -04:00
Jacob Walls
467aeeb569 [5.1.x] Bumped version for 5.1.13 release. 5.1.13 2025-10-01 09:01:21 -04:00
Sarah Boyce
74fa85c688 [5.1.x] Fixed CVE-2025-59682 -- Fixed potential partial directory-traversal via archive.extract().
Thanks stackered for the report.

Follow up to 05413afa8c.

Backport of 924a0c092e from main.
2025-10-01 08:53:50 -04:00
Mariusz Felisiak
01d2d770e2 [5.1.x] Fixed CVE-2025-59681 -- Protected QuerySet.annotate(), alias(), aggregate(), and extra() against SQL injection in column aliases on MySQL/MariaDB.
Thanks sw0rd1ight for the report.

Follow up to 93cae5cb2f.

Backport of 41b43c74bd from main.
2025-10-01 08:53:17 -04:00
Mariusz Felisiak
cbe5042d85 [5.1.x] Added stub release notes and release date for 5.1.13 and 4.2.25.
Backport of 00174507f8 from main.
2025-09-24 11:47:22 -04:00
Mariusz Felisiak
27e230ff25 [5.1.x] Added missing backticks in docs/releases/security.txt.
Backport of 686a8a62ae from main
2025-09-04 11:11:09 +02:00
Sarah Boyce
26fc64332c [5.1.x] Added CVE-2025-57833 to security archive.
Backport of f0c05a40d2 from main.
2025-09-03 15:29:23 +02:00
Sarah Boyce
dc002e5d2d [5.1.x] Post-release version bump. 2025-09-03 13:37:20 +02:00
Sarah Boyce
f71d9c35e4 [5.1.x] Bumped version for 5.1.12 release. 5.1.12 2025-09-03 13:32:35 +02:00
Jake Howard
102965ea93 [5.1.x] Fixed CVE-2025-57833 -- Protected FilteredRelation against SQL injection in column aliases.
Thanks Eyal Gabay (EyalSec) for the report.

Backport of 5171171709 from main.
2025-09-03 13:31:32 +02:00
Sarah Boyce
44cd014a0a [5.1.x] Added stub release notes and release date for 5.1.12 and 4.2.24.
Backport of 4c71e33440 from main.
2025-08-27 16:10:48 +02:00
Natalia
09801786df [5.1.x] Fixed #36499 -- Adjusted utils_tests.test_html.TestUtilsHtml.test_strip_tags following Python's HTMLParser new behavior.
Python fixed a quadratic complexity processing for HTMLParser in:
https://github.com/python/cpython/commit/6eb6c5db.

Backport of 2980627502 from main.
2025-08-13 17:49:04 -03:00
Natalia
19e7b95552 [5.1.x] Fixed test_utils.tests.HTMLEqualTests.test_parsing_errors following Python's HTMLParser fixed parsing.
Further details about Python changes can be found in:
0243f97cba.

Refs #36499. Thank you Clifford Gama for the thorough review!

Backport of e4515dad7a from main.
2025-08-13 17:49:04 -03:00
Natalia
9d9b3bc717 [5.1.x] Refs #36535 -- Doc'd that docutils < 0.22 is required. 2025-08-04 21:55:27 -03:00
nessita
37f6474380 [5.1.x] Fixed GitHub Action that checks commit prefixes to fetch PR head correctly.
Backport of 8499fba0e1 from main.
2025-07-16 15:37:35 -03:00
nessita
31045931aa [5.1.x] Added GitHub Action to enforce stable branch commit message prefix.
Backport of 10386fac00 from main.
2025-07-16 08:39:34 -03:00
Sarah Boyce
97c753741a [5.1.x] Added follow-up to CVE-2025-48432 to security archive.
Backport of 2714bc3f2c from main.
2025-06-10 15:15:14 +02:00
Sarah Boyce
353a6af6d9 [5.1.x] Post-release version bump. 2025-06-10 11:50:05 +02:00