GHSA-c2xx-cjmh-9q8f: Wagtail Improper Restriction Handling On Descendant Vulnerability
MODERATEGHSA-c2xx-cjmh-9q8f is a MODERATE (CVSS 5.3) improper restriction handling on descendant vulnerability (CWE-280: Improper Handling of Insufficient Permissions or Privileges) affecting Wagtail libraries in the PyPI ecosystem. The issue involves improper restriction handling on descendant collections in documents and images api. Remediation is available by upgrading affected packages to version 7.0.9, 7.3.4, 7.4.3, 8.0rc2.
GHSA-c2xx-cjmh-9q8f at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix GHSA-c2xx-cjmh-9q8f
To remediate this vulnerability, upgrade all affected Wagtail dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install wagtail>=7.0.9
pip install wagtail>=7.3.4
pip install wagtail>=7.4.3
pip install wagtail>=8.0rc2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show wagtail
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-c2xx-cjmh-9q8f, inspect your installed packages using pip:
pip show wagtail
Analyze the terminal output to locate any version of Wagtail in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.9), your application is affected.
Note: The pip show wagtail command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-280: Improper Handling of Insufficient Permissions or Privileges, where the product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. this may cause it to follow unexpected code paths that may leave the product in an invalid state. In Wagtail, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-c2xx-cjmh-9q8f Affected Wagtail Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wagtail
|
PyPI |
< 7.0.9
|
7.0.9
|
|
wagtail
|
PyPI |
≥ 7.1
< 7.3.4
|
7.3.4
|
|
wagtail
|
PyPI |
≥ 7.4
< 7.4.3
|
7.4.3
|
|
wagtail
|
PyPI |
≥ 8.0rc1
< 8.0rc2
All 1 versions
8.0rc1
|
8.0rc2
|
References
Frequently Asked Questions
What is GHSA-c2xx-cjmh-9q8f?
Which Wagtail versions are affected?
What version fixes GHSA-c2xx-cjmh-9q8f?
Is wagtail affected?
What is the CVSS score of GHSA-c2xx-cjmh-9q8f?
What CWE is associated with GHSA-c2xx-cjmh-9q8f?
How can I check PyPI dependencies for GHSA-c2xx-cjmh-9q8f?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c2xx-cjmh-9q8f",
"modified" : "2026-08-20T18:45:14Z",
"published" : "2026-08-20T18:45:14Z",
"aliases" : [ ],
"summary" : "Wagtail: Improper restriction handling on descendant collections in Documents and Images API",
"details" : "### Impact\n\nThe Documents and Images [API V2](https://docs.wagtail.org/en/stable/advanced_topics/api/index.html) 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.\n\n### Patches\n\nPatched versions have been released as Wagtail 7.0.9, 7.3.4, 7.4.3 and 8.0rc2.\n\n### Workarounds\n\nSite owners using Wagtail's API can avoid the vulnerability by adding [authentication](https://docs.wagtail.org/en/stable/advanced_topics/api/v2/configuration.html#authentication) to the Documents and Images APIs.\n\n\n### Acknowledgements\n\nMany thanks to Ta Duc Thien for reporting this issue.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Visit Wagtail's [support channels](https://docs.wagtail.org/en/stable/support.html)\n* Email us at [security@wagtail.org](mailto:security@wagtail.org) (view our [security policy](https://github.com/wagtail/wagtail/security/policy) for more information).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "wagtail"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.0.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "wagtail"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.1"
}, {
"fixed" : "7.3.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "wagtail"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.4"
}, {
"fixed" : "7.4.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "wagtail"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0rc1"
}, {
"fixed" : "8.0rc2"
} ]
} ],
"versions" : [ "8.0rc1" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wagtail/wagtail/security/advisories/GHSA-c2xx-cjmh-9q8f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wagtail/wagtail"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-280" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-20T18:45:14Z",
"nvd_published_at" : null
}
}