Summary
Wagtail: Improper restriction handling on descendant collections in Documents and Images API
Workarounds
Site owners using Wagtail's API can avoid the vulnerability by adding authentication to the Documents and Images APIs.
Acknowledgements
Many thanks to Ta Duc Thien for reporting this issue.
For more information
If you have any questions or comments about this advisory:
- Visit Wagtail's support channels
- Email us at [email protected] (view our security policy for more information).
Impact
The Documents and Images API V2 incorrectly listed items in descendants of private collections, which should inherit the view restrictions defined on their ancestors. A user with access to the API could see the filename and name of documents and images in these descendant collections.
GHSA-C2XX-CJMH-9Q8F has a CVSS score of 5.3 (Medium). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (7.0.9, 7.3.4, 7.4.3, 8.0rc2); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
Patched versions have been released as Wagtail 7.0.9, 7.3.4, 7.4.3 and 8.0rc2.
Frequently Asked Questions
- What is GHSA-C2XX-CJMH-9Q8F? GHSA-C2XX-CJMH-9Q8F is a medium-severity security vulnerability in wagtail (pip), affecting versions < 7.0.9. It is fixed in 7.0.9, 7.3.4, 7.4.3, 8.0rc2.
- How severe is GHSA-C2XX-CJMH-9Q8F? GHSA-C2XX-CJMH-9Q8F has a CVSS score of 5.3 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of wagtail are affected by GHSA-C2XX-CJMH-9Q8F? wagtail (pip) versions < 7.0.9 is affected.
- Is there a fix for GHSA-C2XX-CJMH-9Q8F? Yes. GHSA-C2XX-CJMH-9Q8F is fixed in 7.0.9, 7.3.4, 7.4.3, 8.0rc2. Upgrade to this version or later.
- Is GHSA-C2XX-CJMH-9Q8F exploitable, and should I be worried? Whether GHSA-C2XX-CJMH-9Q8F is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether GHSA-C2XX-CJMH-9Q8F is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix GHSA-C2XX-CJMH-9Q8F?
- Upgrade
wagtailto 7.0.9 or later - Upgrade
wagtailto 7.3.4 or later - Upgrade
wagtailto 7.4.3 or later - Upgrade
wagtailto 8.0rc2 or later
- Upgrade