chore(deps): bump Django to 5.2.17 - #3301
Conversation
- Clears eight security advisories open against 5.2.14: cache middleware private-response disclosure (Vary: Authorization, case-sensitive Cache-Control, Set-Cookie with unrelated request cookies, whitespace in Vary values), signed-cookie salt namespace collisions, STARTTLS connection reuse, GDALRaster heap over-read, and newlines in DomainNameValidator - Also picks up the 5.2.17 fixes: server-side file write via spatial lookups, nested GEOMETRYCOLLECTION DoS, admin URLField XSS, and check_for_language() DoS - No code changes needed: none of the affected APIs are used Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
There was a problem hiding this comment.
Pull request overview
Updates the project’s pinned Django patch version to the latest 5.2 LTS patch release in order to address multiple security advisories, without introducing dependency churn beyond Django itself.
Changes:
- Bump
Djangofrom5.2.14to5.2.17in the relevant dependency groups inpyproject.toml. - Update
uv.lockto reflect the resolved Django5.2.17package metadata and group pins.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
pyproject.toml |
Updates the pinned Django version in the server, viewer, and mypy dependency groups. |
uv.lock |
Updates locked Django version and associated artifact hashes/URLs across dependency groups and the django package entry. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3301 +/- ##
=========================================
Coverage ? 90.31%
=========================================
Files ? 85
Lines ? 9942
Branches ? 1098
=========================================
Hits ? 8979
Misses ? 709
Partials ? 254 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



Issues Fixed
Clears the eight Dependabot advisories open against
django5.2.14 inuv.lock(alerts 302, 304, 305, 306, 307, 308, 309, 310):UpdateCacheMiddlewareomitsAuthorizationfromVaryhas_vary_headermishandles whitespace inVaryvaluesUpdateCacheMiddlewarehandlesCache-Controlcase-sensitivelyGDALRasterheap over-read when constructed frombytesDomainNameValidatorpermits newlines (header injection)Set-Cookieresponse exposed when the request carries an unrelated cookieDescription
Bumps Django from 5.2.14 to 5.2.17, the latest patch in the 5.2 LTS series, in all three dependency groups plus the resolved viewer pin. Only
djangomoves in the lockfile; there is no transitive churn.Going to 5.2.17 rather than stopping at 5.2.16 also picks up four fixes that were never raised as alerts here, including one rated high:
GEOMETRYCOLLECTIONURLFieldvalues in the admincheck_for_language()No code changes are needed. Each affected API was checked against the tree and none is used: no
get_signed_cookie/set_signed_cookie, nodjango.contrib.gis, noUpdateCacheMiddleware/cache_page, noDomainNameValidator, no SMTP email backend, and noset_languageview. The one backward-incompatible change in 5.2.17 (spatial lookups now rejectdictand non-geometrystr) needs GeoDjango, so it does not apply.OSV reports no remaining advisories against 5.2.17.
Verified locally: 1985 passed / 3 skipped (
-m "not integration"),mypy .clean across 195 files,ruff checkandruff format --checkclean.Checklist
Device testing is not applicable: this is a patch-level dependency bump with no runtime behavior change on any board.
🤖 Generated with Claude Code