CVE-2023-28837Medium· 4.4▾ SunlitWagtail vulnerable to denial-of-service via memory exhaustion when uploading large files
▾ Sunlit zone — Low / medium · no exploitation signal
impact 24.2 · likelihood 0.2 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Sep 12.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
1.1%
A memory exhaustion bug exists in Wagtail's handling of uploaded images and documents. For both images and documents, files are loaded into memory during upload for additional processing. A user with access to upload images or documents through the Wagtail admin interface could upload a file so large that it results in a crash or denial of service.
The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin. It can only be exploited by admin users with permission to upload images or documents.
Image uploads are restricted to 10MB by default, however this validation only happens on the frontend and on the backend after the vulnerable code.
Patched versions have been released as Wagtail 4.1.4 (for the LTS 4.1 branch) and Wagtail 4.2.2 (for the current 4.2 branch).
Site owners who are unable to upgrade to the new versions are encouraged to add extra protections outside of Wagtail to limit the size of uploaded files. Exactly how this is done will vary based on your hosting environment, but here are a few references for common setups:
client_max_body_sizeLimitRequestBodySizeConstrainttraefik.http.middlewares.limit.buffering.maxRequestBodyBytesThe changes themselves are deep inside Wagtail, making patching incredibly difficult.
wagtail >= 4.2, < 4.2.2wagtail < 4.1.4Upgrade to a patched release:
wagtail 4.2.2wagtail 4.1.4Connected by shared product, vendor, weakness, or advisory.
CVE-2023-28836Medium· 6.4Wagtail vulnerable to stored Cross-site Scripting attack via ModelAdmin views
CVE-2021-29434Medium· 6.1Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields
CVE-2020-15118Medium· 5.7Cross-Site Scripting in Wagtail
CVE-2026-55468Medium· 4.3Wagtail: Improper restriction handling on Pages admin API
CVE-2026-28222Medium· 6.1Wagtail Vulnerable to Cross-site Scripting in TableBlock class attributes
CVE-2026-28223Medium· 6.1Wagtail Vulnerable to Cross-site Scripting in simple_translation admin interface