PyPI: wagtail

CVE-2026-54263

Safety vulnerability ID: SFTY-20260820-91329

Affected versions of the Wagtail package are vulnerable to Reflected Cross-site Scripting (XSS) due to improper handling of user input in the dynamic image URL generator view. The `generate_url` function within the Wagtail admin interface fails to properly sanitize URL parameters, allowing malicious scripts to be reflected back to users. An attacker with a limited-permission editor account can exploit this vulnerability by crafting a URL that, when accessed by a user with higher privileges, executes arbitrary actions with that user's credentials.

Created at: Aug 25, 2026Updated at: Aug 25, 2026

Overview

Wagtail: Reflected XSS in dynamic image URL generator view

Advisory

wagtail – Cross-site Scripting (XSS)

Affected Package

Affecting wagtail package, versions>= 7.3, < 7.3.3>= 7.4, < 7.4.2

Also affects

---

How to Fix

Upgradewagtailto7.3.37.4.2or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more