Wagtail has improper restriction handling on Documents and Images API
### Impact
The Documents and Images API
https://docs.wagtail.org/en/stable/advanced_topics/api/index.html incorrectly listed items in private collections. A user with access to the API could see the filename and name of documents and images in private collections.
### Patches
Patched versions have been released as Wagtail 7.0.7 and 7.3.2. The new 7.4 LTS feature release also incorporates this fix.
### Workarounds
Site 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.
### Acknowledgements
Wagtail thanks independent security researcher Sanjok Karki @thesanjok for reporting this issue.
### For more information
If there are any questions or comments about this advisory:
* Visit Wagtail's support channels
https://docs.wagtail.org/en/stable/support.html
* Send an email to [security@wagtail.org](mailto:security@wagtail.org) (view the security policy
https://github.com/wagtail/wagtail/security/policy for more information).