# CVE-2025-45388: Wagtail CMS 6.4.1 is vulnerable to a Stored Cross-Site Scripting (XSS) in the document upload functionality.

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-07T00:00:00.000Z
- Modified: 2026-06-17T09:25:30.240Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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)."

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/echoBRT/Wagtail-CMS-XSS/> (exploit)
- <https://github.com/wagtail/wagtail/wiki/Security-team>
- <https://github.com/wagtail/wagtail/discussions/12617>
- <https://docs.wagtail.org/en/stable/deployment/under_the_hood.html#documents>
- <https://github.com/wagtail/wagtail/pull/12672>

## Sources

- CVE List: [CVE-2025-45388](https://www.cve.org/CVERecord?id=CVE-2025-45388), CVE Terms of Use, modified 2025-05-09
- NVD: [CVE-2025-45388](https://nvd.nist.gov/vuln/detail/CVE-2025-45388), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-45388 · Whole record: https://cve.day/CVE-2025-45388.json · Rebuilt by cve.day 2026-11-25T22:58:57.778Z
