CVE-2025-45388 Details
Description
Wagtail CMS 6.4.1 is vulnerable to a Stored Cross-Site Scripting (XSS) in the document upload functionality. Attackers can inject malicious code inside a PDF file. When a user clicks the document in the CMS interface, the payload executes. NOTE: this is disputed by the Supplier because "It has been well documented that when serving uploaded files using a method outside of Wagtail (which admittedly is the default), it requires additional configuration from the developer, because Wagtail cannot control how these are served. ... For example, if a Wagtail instance is configured to upload files into AWS S3, Wagtail cannot control the permissions on how they're served, nor any headers used when serving them (a limitation of S3)."
A stored cross-site scripting vulnerability has been identified in Wagtail CMS version 6.4.1. This issue arises within the document upload functionality, where attackers can embed malicious scripts into PDF files. When these files are accessed through the CMS interface, the injected scripts are executed. This vulnerability is particularly concerning when Wagtail is configured to use cloud storage services like AWS S3, as it can lead to bypassing of Wagtail's default privacy checks and execution of scripts in documents.
Users can mitigate this vulnerability by serving documents with a 'Content-Disposition: attachment' header to force downloads instead of inline viewing, which could execute scripts. Additionally, implementing a strict 'Content-Security-Policy' can prevent execution of embedded scripts. Wagtail has introduced a default 'Content-Security-Policy' header when serving documents through a Django view, but this may not apply if documents are served from a cloud storage service like S3.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 7, 2025CISA-ADP
Assessed May 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/echoBRT/Wagtail-CMS-XSS/ | CISA-ADP | ExploitTechnical Description |
| https://docs.wagtail.org/en/stable/deployment/under_the_hood.html#documents | [email protected] | Vendor |
| https://github.com/echoBRT/Wagtail-CMS-XSS/ | [email protected] | ExploitTechnical Description |
| https://github.com/wagtail/wagtail/discussions/12617 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://github.com/wagtail/wagtail/pull/12672 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/wagtail/wagtail/wiki/Security-team | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Wagtail CMS | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 9, 2025 | CVE Modified | [email protected] |
| May 8, 2025 | CVE Modified | CISA-ADP |
| May 7, 2025 | New CVE Received | [email protected] |
Volerion