Loading advisory.
Loading advisory.
Wagtail regular expression denial-of-service via search query parsing
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.
Published 2024-07-11 13:21 UTC · Modified 2026-06-09 13:15 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| wagtail | PyPI | >= 6.0, < 6.0.6 >= 6.1, < 6.1.3 >= 2.0, < 5.2.6 git commits in https://github.com/wagtail/wagtail: < 31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2 git commits in https://github.com/wagtail/wagtail: < 3c941136f79c48446e3858df46e5b668d7f83797 git commits in https://github.com/wagtail/wagtail: < b783c096b6d4fd2cfc05f9137a0be288850e99a2 versions 6.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.1, 6.1.1, 6.1.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.1, 2.1.2, 2.1.3, 2.10, 2.10.1, 2.10.2, 2.10rc1 and 177 more | 6.0.6, 6.1.3, 5.2.6, 31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2, 3c941136f79c48446e3858df46e5b668d7f83797, b783c096b6d4fd2cfc05f9137a0be288850e99a2 | pip install --upgrade 'wagtail>=6.0.6'pip install --upgrade 'wagtail>=6.1.3'pip install --upgrade 'wagtail>=5.2.6'pip install --upgrade 'wagtail>=31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2'pip install --upgrade 'wagtail>=3c941136f79c48446e3858df46e5b668d7f83797'pip install --upgrade 'wagtail>=b783c096b6d4fd2cfc05f9137a0be288850e99a2' |
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).
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.
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.
Many thanks to Jake Howard for reporting this issue.
If you have any questions or comments about this advisory:
Visit Wagtail's support channels
Email us at security@wagtail.org (view our security policy for more information).
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.011 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.011 | 0.006 | v2026.06.15 |