MediumGHSA-xxpx-f366-4xpq
Craft CMS: Authorization bypass: view-only Categories user can modify category structure via structures/move-element
Affected versions
5.0.0-RC1 to before 5.10.6 - fixed in 5.10.6Details
A control-panel user who holds only the viewCategories permission for a category group (and not saveCategories) can permanently modify that group's category structure — reordering and re-parenting categories via the structures/move-element action. A read-time authorization grant that a write endpoint later trusts. For categories, the structureEditable flag is computed from the view permission (`src/elements/Category.php:205`) instead of the save permission (entries correctly use saveEntries — `src/elements/Entry.php:341`). When the read-only category index renders, `craft\base\Element::indexH
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-72785
- https://github.com/craftcms/cms/security/advisories/GHSA-xxpx-f366-4xpq
- https://nvd.nist.gov/vuln/detail/CVE-2026-72785
- https://github.com/craftcms/cms/commit/eb63721b8476ef53f21d7de53d156eef531cb57d
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/4.18.2
- https://github.com/craftcms/cms/releases/tag/5.10.6
- https://www.vulncheck.com/advisories/craft-cms-before-authorization-bypass-via-structures-move-element
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected