VDB
KO
MEDIUM 6.5

GHSA-x5cx-w6p2-mxf2

Wagtail: Improper permission handling when copying snippets

Quick fix

GHSA-x5cx-w6p2-mxf2 — wagtail: upgrade to the fixed version with the command below.

pip install --upgrade 'wagtail>=7.0.9'

Details

### Impact A CMS user with "add" permission over a snippet model, but not "change" or "view" permission, could copy an existing snippet that they do not have access to, allowing them to view its contents.

### Patches Patched versions have been released as Wagtail 7.0.9, 7.3.4, 7.4.3 and 8.0rc2.

### Workarounds N/A

### Acknowledgements Many thanks to tinyb0y for reporting this issue.

### For more information If you have any questions or comments about this advisory:

* Visit Wagtail's [support channels](https://docs.wagtail.org/en/stable/support.html) * Email us at [security@wagtail.org](mailto:security@wagtail.org) (view our [security policy](https://github.com/wagtail/wagtail/security/policy) for more information).

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / wagtail
Introduced in: 0 Fixed in: 7.0.9
Fix pip install --upgrade 'wagtail>=7.0.9'
PyPI / wagtail
Introduced in: 7.1 Fixed in: 7.3.4
Fix pip install --upgrade 'wagtail>=7.3.4'
PyPI / wagtail
Introduced in: 7.4 Fixed in: 7.4.3
Fix pip install --upgrade 'wagtail>=7.4.3'
PyPI / wagtail
Introduced in: 8.0rc1 Fixed in: 8.0rc2
Fix pip install --upgrade 'wagtail>=8.0rc2'

References