chore(deps): update dependency wagtail to v5 [security] - autoclosed #2682
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.
This PR contains the following updates:
==4.1.9
->==5.2.6
GitHub Vulnerability Alerts
CVE-2024-39317
Impact
A bug in Wagtail's
parse_query_string
would result in it taking a long time to process suitably crafted inputs. When used to parse sufficiently long strings of characters without a space,parse_query_string
would take an unexpectedly large amount of time to process, resulting in a denial of service.In an initial Wagtail installation, the vulnerability can be exploited by any Wagtail admin user. It cannot be exploited by end users. If your Wagtail site has a custom search implementation which uses
parse_query_string
, it may be exploitable by other users (e.g. unauthenticated users).Patches
Patched versions have been released as Wagtail 5.2.6, 6.0.6 and 6.1.3.
This vulnerability affects all unpatched versions from Wagtail 2.0 onwards.
Workarounds
Site owners who are unable to upgrade to a patched version can limit the length of search terms passed to
parse_query_string
. Whilst the performance characteristics will depend on your hosting environment, 1000 characters has been shown to still be fairly fast, without triggering this vulnerability.No workaround is available for the Wagtail admin usage.
Acknowledgements
Many thanks to Jake Howard for reporting this issue.
For more information
If you have any questions or comments about this advisory:
Release Notes
wagtail/wagtail (wagtail)
v5.2.6
: 5.2.6Compare Source
v5.2.5
: 5.2.5Compare Source
WAGTAIL_ALLOW_UNICODE_SLUGS
setting when auto-generating slugs (LB (Ben) Johnston)convert_mariadb_uuids
management command to assist with upgrading to Django 5.0+ on MariaDB (Matt Westcott)v5.2.4
: 5.2.4Compare Source
v5.2.3
: 5.2.3Compare Source
FormSubmissionsPanel
on Django 5.0 when creating a new form page (Matt Westcott)v5.2.2
: 5.2.2Compare Source
index_results.html
orindex_results_template_name
override on initial load (Stefan Hammer)last_published_by_user
(Chiemezuo Akujobi)v5.2.1
: 5.2.1Compare Source
decorate_paginated_queryset
before pagination / filtering (Alex Tomkins){% picture ... as ... %}
template tag (Rezyapkin)v5.2
: 5.2 (LTS)Compare Source
wagtailcache
&wagtailpagecache
(Jake Howard)field.html
template (Sage Abdullah)SnippetViewSet
menu registration mechanism to baseViewSet
class (Sage Abdullah)ModelViewSet
(Sage Abdullah)SnippetViewSet
template override mechanism toModelViewSet
(Sage Abdullah)SnippetViewSet.list_display
toModelViewSet
(Sage Abdullah)wagtail.publish
log action on aliases when they are created from live source pages or the source page is published (Dan Braghis)wagtail.unpublish
log action on aliases when source page is unpublished (Dan Braghis)IndexView
(Sage Abdullah)list_filter
,filterset_class
,search_fields
,search_backend_name
,list_export
,export_filename
,list_per_page
, andordering
fromSnippetViewSet
toModelViewSet
(Sage Abdullah, Cynthia Kiser)IndexView
andCreateView
(Sage Abdullah)IndexView.export_headings
viaModelViewSet
(Christer Jensen, Sage Abdullah)get_object_list
method onChooserViewSet
(Matt Westcott)linked_fields
mechanism on chooser widgets to allow choices to be limited by fields on the calling page (Matt Westcott)TableBlock
with themergedCells
option (Gareth Palmer)InlinePanel
, focus will now shift to that content similar toStreamField
(Faishal Manzar)placement
in thehuman_readable_date
tooltip template tag (Rohit Sharma)ModelViewSet
views (Sage Abdullah){% component %}
tag (Matt Westcott)PagesAPIViewSet
override default Page model via themodel
attribute (Neeraj Yetheendran, Herbert Poul)ModelViewSet
to be used with models that have non-integer primary keys (Sage Abdullah)HistoryView
from snippets and add it toModelViewSet
(Sage Abdullah)UsageView
toModelViewSet
(Sage Abdullah)IndexView
(Sage Abdullah)wagtail_update_image_renditions
management command (Faishal Manzar)hashlib.file_digest
if available (Python 3.11+) (Jake Howard)Block.get_template
to allow varying template based on value (Florian Delizy)InlinePanel
DOM events for when ready and when items added or removed (Faishal Manzar)picture
template tag for Django Templates and Jinja (Thibaud Colas)srcset_image
template tag for Django Templates and Jinja (Thibaud Colas)Filter
instances as input forAbstractImage.get_renditions()
(Thibaud Colas)FieldPanel('title')
examples to use the recommendedTitleFieldPanel('title')
panel (Chinedu Ihedioha)purge_revisions
management command now respects revisions that have aon_delete=PROTECT
foreign key relation and won't delete them (Neeraj P Yetheendran, Meghana Reddy, Sage Abdullah, Storm Heg)FieldBlock
s correctly set therequired
andaria-describedby
attributes (Storm Heg)PublishMenuItem
to more easily support overriding its label viaconstruct_page_action_menu
(Sébastien Corbin)non_fields_errors
for any custom form validation (Sébastien Corbin)WAGTAIL_EMAIL_MANAGEMENT_ENABLED
setting by not showing 'email' if disabled (Omkar Jadhav)ViewSet
andModelViewSet
(Sage Abdullah)WAGTAILADMIN_BASE_URL
on "Integrating Wagtail into a Django project" page (Shreshth Srivastava)WAGTAILADMIN_RICH_TEXT_EDITORS
setting (Charlie Sue)python3-venv
on Ubuntu (Brian Mugo)WagtailTestUtils.get_soup()
method for testing HTML content (Storm Heg, Sage Abdullah)ViewSet
subclasses to customiseurl_prefix
andurl_namespace
logic (Matt Westcott)SnippetViewSet
registration code (Sage Abdullah)IndexView.results_template_name
toresults.html
(Sage Abdullah)w-bulk
Stimulus implementation (LB (Ben) Johnston)w-message
controller (LB (Ben) Johnston, Hussain Saherwala)stubs.js
to prevent Storybook from crashing (LB (Ben) Johnston)slim_header.html
template (Sage Abdullah)slim_header.html
template to reduce code duplication (Sage Abdullah)imghdr
(Jake Howard)imghdr
with Willow's built-in MIME type detection (Jake Howard)data-tippy
HTML attribute usage to the Stimulus data-*-value attributes for w-tooltip & w-dropdown (Subhajit Ghosh, LB (Ben) Johnston)@total_ordering
usage with comparison functions implementation (Virag Jain)<script type="text/django-form-template"><-/script>
template approach with HTMLtemplate
elements in InlinePanel and expanding formset (Mansi Gundre, Subhajit Ghosh, LB (Ben) Johnston)ModelViewSet
andSnippetViewSet
(Sage Abdullah)lru_cache
usage (Jake Howard)date_since
inget_most_popular
insidesearch_promotions.models.Query
(TopDevPros)classname
(notclassnames
) attributes for allMenuItem
usage, including deprecation warnings (LB (Ben) Johnston)classname
(notclassnames
) attribute within thewagtail.images.formats.Format
instance, including deprecation warnings (LB (Ben) Johnston)context
argument ofconstruct_snippet_listing_buttons
hook (Sage Abdullah)search.Query
&search.QueryDailyHits
model, move final set of templates from the admin search module to the search promotions contrib module (LB (Ben) Johnston)InspectView
toModelViewSet
(Sage Abdullah)reset
method to support Stimulus driven dynamic field resets via thew-action
controller (Chiemezuo Akujobi)notify
target on the Stimulus dialog for dispatching events internally (Chiemezuo Akujobi)v5.1.3
: 5.1.3Compare Source
SnippetBulkAction
not respectingmodels
definition (Sandro Rodrigues)v5.1.2
: 5.1.2Compare Source
ignore_conflicts
when creating extra permissions for snippets, for SQL Server compatibility (Sage Abdullah)wagtailsearchpromotions_query
table is correctly set after migrating data (Jake Howard)None
from being exported as strings (Christer Jensen)imghdr
with Willow's built-in MIME type detection (Jake Howard)v5.1.1
: 5.1.1Compare Source
wagtail.admin.ui.tables.BooleanColumn
to display boolean values as icons (Sage Abdullah)None
falsy values instead of blank in generic table cell template (Sage Abdullah)read_only
panels for fields with translatable choice labels (Florent Lebreton)v5.1
: 5.1Compare Source
md5
as not being used for secure purposes, to avoid flagging on FIPS-mode systems (Sean Kelly)parse_query_string
as aQueryDict
to support multiple values (Aman Pandey)MenuItem.name
for all admin menu and submenu items (Justin Koestinger)PagePermissionPolicy
(Sage Abdullah)UserPagePermissionsProxy
andPagePermissionTester
to usePagePermissionPolicy
(Sage Abdullah, Tidiane Dia)AbstractImage.get_renditions()
for efficient generation of multiple renditions (Andy Babic)StreamField
block when only one block type is declared (Sébastien Corbin)SnippetViewSet.list_export
(Sage Abdullah)attrs
onFieldPanel
,FieldRowPanel
,MultiFieldPanel
, and others (Aman Pandey, Antoni Martyniuk, LB (Ben) Johnston)--template
option towagtail start
(Thibaud Colas)purge_revisions
command (Sage Abdullah)parent_page_types
would disallow it (Dan Braghis)UsageView
fromEditView
for snippets (Christer Jensen)RichText
objects with the same values compare as equal (NikilTn)gettext_lazy
on generic model views so that language settings are correctly used (Matt Westcott)MultipleChooserPanel
(Matt Westcott)innerHTML
when modifying DOM content (LB (Ben) Johnston)ValueError
when extendingPagesAPIViewSet
and settingmeta_fields
to an empty list (Henry Harutyunyan, Alex Morega)PagePermissionHelper.user_can_unpublish_obj()
in ModelAdmin (Sébastien Corbin)search_promotions
0004_copy_queries
migration for long-lived Wagtail instances (Sage Abdullah)TypeError
in0088_fix_log_entry_json_timestamps
migration (Sage Abdullah)page_header_buttons
template tag when accessing the context's request object (Robert Rollins)ModelAdminGroup
(Onno Timmerman)log_action
parameter onRevisionMixin.save_revision
(Christer Jensen)searchpromotions
(Scott Foster)insert_editor_css
in favour ofinsert_global_admin_css
(Ester Beltrami)specific
on Task and TaskState (Matt Westcott)parent_context
is mutable (Andreas Nüßlein)UserPagePermissionsProxy
(Sage Abdullah)django-filter
version upper bound to v24 (Yuekui)w-swap
, a Stimulus controller (LB (Ben) Johnston)w-tooltip
Stimulus controller (LB (Ben) Johnston)jest-environment-jsdom
and new snapshot format (LB (Ben) Johnston)w-dialog
Stimulus controller (Loveth Omokaro, LB (Ben) Johnston)w-teleport
Stimulus controller (Loveth Omokaro, LB (Ben) Johnston)"wagtailadmin/shared/field_as_li.html"
template include (Storm Heg)wagtail.contrib.modeladmin
(Sage Abdullah)sphinx_wagtail_theme
to v6.1.1 which includes multiple styling fixes and always visible code copy buttons (LB (Ben) Johnston)v5.0.5
: 5.0.5Compare Source
v5.0.4
: 5.0.4Compare Source
v5.0.3
: 5.0.3Compare Source
ignore_conflicts
when creating extra permissions for snippets, for SQL Server compatibility (Sage Abdullah)wagtailsearchpromotions_query
table is correctly set after migrating data (Jake Howard)v5.0.2
: 5.0.2Compare Source
TitleFieldPanel
to support title / slug field synchronisation (LB (Ben) Johnston)MultipleChooserPanel
(Matt Westcott)v5.0.1
: 5.0.1Compare Source
WAGTAILADMIN_COMMENTS_ENABLED
(Thibaud Colas)for_update
value forget_form_class
inSnippetViewSet
edit views (Sage Abdullah)UsageView
fromEditView
for snippets (Christer Jensen)log_action
parameter onRevisionMixin.save_revision
(Christer Jensen)v5.0
: 5.0Compare Source
WAGTAILIMAGES_EXTENSIONS
setting to restrict image uploads to specific file types (Aman Pandey, Ananjan-R)Access level
to be easier to understand (Vallabh Tiwari).button-longrunning
behaviour to a Stimulus controller with support for custom label element & duration (Loveth Omokaro)change
event (George Sakkis)search_fields = []
(Daniel Kirkham)wagtail.search.utils.parse_query_string
to allow inner single quotes for key/value parsing (Aman Pandey)Locale
for more convenient usage within templates (Andy Babic)SnippetViewSet.icon
(Daniel Kirkham, Sage Abdullah)MenuItem.name
for Snippets, Reports, and Settings menu items (Sage Abdullah)list_filter
attribute (Sage Abdullah)IndexView
(Sage Abdullah)search_fields
and search backend via SnippetViewSet (Sage Abdullah)panels
/edit_handler
to be specified viaSnippetViewSet
(Sage Abdullah)label_format
on StructBlock gracefully handles missing variables (Aadi jindal)Site.get_site_root_paths
works on cache backends that do not preserve Python objects (Jaap Roes)StructValue
copies (Tidiane Dia)GroupApprovalTask
if it's locked by someone outside of the group (Sage Abdullah)WorkflowLock
is currently applied (Sage Abdullah)wagtail.schedule.cancel
(Stefan Hammer)require_admin_access()
(Stefan Hammer)radio
input fields (Mehul Aggarwal)TemplateResponse
s for users with a custom timezone (Stefan Hammer, Sage Abdullah)download_url
whenWAGTAILDOCS_SERVE_METHOD
isdirect
(Swojak-A)ClusterableModel
requirements for using relations withRevisionMixin
-enabled models (Sage Abdullah)strictPropertyInitialization
in tsconfig (Thibaud Colas)Page.get_static_site_paths
method (Yosr Karoui)CollapseAll
andMinimapItem
components (Albina Starykova)AutoFieldController
to the less confusingSubmitController
(Loveth Omokaro)script
tags withtemplate
tag for image/document bulk uploads (Rishabh Kumar Bahukhandi)SlugInput
widget (Loveth Omokaro)status
HTML usage to shared template tag (Aman Pandey, LB (Ben) Johnston, Himanshu Garg)ModelAdmin
and Snippets type index header (Aman Pandey)wagtailsearch.Query
towagtail.contrib.search_promotions
(Karl Hobley)initErrorDetection
(tabs error counts) to a Stimulus Controllerw-count
(Aman Pandey)window.addMessage
behaviour to a global event listener & Stimulus Controller approach withw-messages
(Aman Pandey)SnippetViewSet.on_register()
(Sage Abdullah)pageurl
template tag (Satvik Vashisht)window.initSlugAutoPopulate
behaviour to a Stimulus Controllerw-sync
(Loveth Omokaro)status
classes tow-status
to align with preferred CSS class naming conventions (Mansi Gundre)wagtail.test.utils
to avoid cross-dependency issues (Matt Westcott)w-bulk
, remove inline script usage (Hanoon)SnippetViewSet
to extendModelViewSet
(Sage Abdullah)w-disimissible
(Loveth Omokaro)w-autosize
controller using autosize npm package v6 (Suyash Srivastava)w-action
controller to support a click method (Suyash Srivastava)w-action
controller usage (Aadi jindal, LB (Ben) Johnston)v4.2.4
: 4.2.4Compare Source
log_action
parameter onRevisionMixin.save_revision
(Christer Jensen)v4.2.3
: 4.2.3Compare Source
v4.2.2
: 4.2.2Compare Source
TemplateResponse
s for users with a custom timezone (Stefan Hammer, Sage Abdullah)MultipleChooserPanel
in panel reference docsv4.2.1
: 4.2.1Compare Source
StructValue
copies (Tidiane Dia)GroupApprovalTask
if it's locked by someone outside of the group (Sage Abdullah)wagtail.schedule.cancel
(Stefan Hammer)require_admin_access()
(Stefan Hammer)ClusterableModel
requirements for using relations withRevisionMixin
-enabled models (Sage Abdullah)v4.2
: 4.2Compare Source
LockableMixin
(Sage Abdullah)WorkflowMixin
(Sage Abdullah){% fullpageurl %}
tag for getting the absolute URL of a page (Jake Howard)MultipleChooserPanel
, a variant ofInlinePanel
with improved editor experience when inserting multiple linked objects (Matt Westcott)WagtailPageTestCase.assertCanCreate
now supports the kwargpublish=True
to determine whether to publish the page (Harry Percival, Akua Dokua Asiedu, Matt Westcott)rebuild_references_index
command can run without console output if called with--verbosity 0
(Omerzahid Ali, Aman Pandey)button bicolor button--icon button-secondary
including thebutton-small
variant (Seremba Patrick)purge_embeds
management command to delete all the cached embed objects in the database (Aman Pandey)form_fields
as an APIField onFormPage
(Sævar Öfjörð Magnússon, Suyash Singh, LB (Ben) Johnston)DraftStateMixin
now automatically define a "Publish" permission type (Sage Abdullah)azure-mgmt-cdn
version >= 10 andazure-mgmt-frontdoor
version >= 1 in the frontend cache invalidator (Sylvain Fankhauser)django-storages
backend is configured to allow overwriting (Rishabh jain)construct_wagtail_userbar
hook (Sage Abdullah)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.