Wagtail document and image name exposure in API V2 collections
wagtail
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| wagtail PyPI |
|
|
wagtail
| Product | Affected | Fixed in |
|---|---|---|
| wagtail PyPI |
|
|
Wagtail is an open source content management system built on Django. Prior to 7.0.9, 7.3.4, 7.4.3, and 8.0rc2, the Wagtail Documents and Images API V2 excludes directly restricted collections but fails to exclude their descendant collections, even though descendants inherit ancestor view restrictions. An API user can therefore list the filenames and names of documents and images stored in descendant collections that should remain private. This issue is fixed in versions 7.0.9, 7.3.4, 7.4.3, and 8.0rc2.
From the CVE record · GitHub_M
Wagtail’s Documents and Images API V2 excludes directly restricted collections but not their descendants, which inherit the same view restrictions. An API user can list filenames and names of documents and images in those descendant collections; the input does not specify whether authentication is required.
Teams running the PyPI wagtail package at versions below 7.0.9, from 7.1 up to but not including 7.3.4, from 7.4 up to but not including 7.4.3, or from 8.0rc1 up to but not including 8.0rc2 should check their deployments.