PyPI: wagtail
CVE-2026-54259
Safety vulnerability ID: SFTY-20260820-09451
Affected versions of the Wagtail package are vulnerable to Improper Handling of Insufficient Permissions or Privileges due to improper restriction handling on the Documents and Images chooser's chosen endpoints. The endpoints incorrectly list items for which users lack the necessary choose permission, revealing filenames, names, and URLs of documents and images. An attacker with access to the Wagtail admin interface can exploit this vulnerability to view restricted metadata for documents and images without proper authorization.
Overview
Wagtail: Improper restriction handling on Documents and Images chosen endpoints
Advisory
wagtail – Improper Handling of Insufficient Permissions or Privileges
Affected Package
Also affects
---
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260820-09451/CVE-2026-54259
- https://github.com/wagtail/wagtail/security/advisories/GHSA-h54r-xq46-qwqm
- https://nvd.nist.gov/vuln/detail/CVE-2026-54259
- https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2026-612.yaml
- https://github.com/advisories/GHSA-h54r-xq46-qwqm
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
