Repository navigation
chore(deps): upgrade Wagtail from 7.3.4 to 8.1 - #262
Merged
Merged
Conversation
The 7.3 branch is no longer maintained and is affected by security advisories that are only fixed in 7.0.10, 7.4.4 and 8.0.1+: - GHSA-4pg7-87vv-vrh7 (high): stored XSS via v3 write API - GHSA-3xgh-xc8p-9h54: Pages admin API ancestor restrictions - GHSA-g6cr-c9h3-6j2m: formula injection via XLSX export - GHSA-jm43-45cc-q9rr: cross-collection authorization bypass Lock changes: wagtail 8.1, draftjs-exporter 5.2.0 -> 7.3.1, modelsearch 1.2.2 -> 1.3.2, new django-ninja and swapper. Update the Wagtail version mentioned in the docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 tasks
Contributor
Author
Local test resultsThe upgrade was tested end to end on a disposable PostgreSQL 17 database. It was populated under Wagtail 7.3.4, then migrated with this branch. The server ran with Test data: 5 pages (home, nested HomePage, SimplePages, one unpublished draft), rich text with bold/italic/external, page and document links, lists and an embedded image, PNG and WebP images, a document, a PageSegment, a Meetup, a sponsor with a sponsorship level, and a redirect.
No 4xx/5xx responses from the application and no tracebacks in the server log. Notes
Not covered
🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Wagtail 7.3 is no longer maintained: the 2026-10-20 security release shipped fixes for 7.0.10 (LTS), 7.4.4 and 8.0.1 only, so 7.3.4 stays vulnerable to:
These advisories are not in the global GitHub Advisory Database yet, which is why Dependabot raised no alert.
Changes
pyproject.toml:wagtail>=8.1,<8.2uv.lock: wagtail 8.1, draftjs-exporter 5.2.0 → 7.3.1, modelsearch 1.2.2 → 1.3.2, new django-ninja 1.8.0 and swapper 1.5.0Upgrade considerations reviewed (7.4, 8.0, 8.1)
None of the removed or changed APIs are used by this project (userbar hooks,
TAG_LIMIT,wagtail.telepath, listing buttons,WAGTAILSEARCH_BACKENDS["INDEX"], viewsets,ajax_template, internal/admin/api/main/, i18n sitemaps). Our templates write their ownblock-*classes, so the neww-block-*prefix does not affect them.Possible visible changes:
draftjs-exportermajor bump may slightly change rich-text HTML on re-save.Tests
manage.py check: no issuesmakemigrations --check: no changesThe test suite does not cover the admin or page rendering, so manual testing is required before merging.
Manual test plan
docker buildthenmigrateon a synthetic database populated under Wagtail 7.3.4migrateon a copy of the production database (task database:pull), not done: Heroku CLI unavailable locallycollectstatic --clear --noinput, then hard-refresh the browser🤖 Generated with Claude Code