Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. GHSA-xxpx-f366-4xpq

GHSA-xxpx-f366-4xpq: Craft CMS:Authorization bypass: view-only Categories user can modify category structure via structures/move-element

August 6, 2026 (updated August 7, 2026)

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::indexHtml() calls Craft::$app->getSession()->authorize('editStructure:<structureId>'); StructuresController then authorizes the structure-mutating action solely on that session grant, with no canSave re-check.

Verified on Craft CMS 5.10.5. Same class as the moderate-severity authorization bypasses fixed in 5.10.3 and 5.10.5; this is a distinct, unpatched instance.

References

  • github.com/advisories/GHSA-xxpx-f366-4xpq
  • github.com/craftcms/cms/commit/eb63721b8476ef53f21d7de53d156eef531cb57d
  • github.com/craftcms/cms/releases/tag/4.18.2
  • github.com/craftcms/cms/releases/tag/5.10.6
  • github.com/craftcms/cms/security/advisories/GHSA-xxpx-f366-4xpq

Code Behaviors & Features

Detect and mitigate GHSA-xxpx-f366-4xpq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0-RC1 before 5.10.6

Fixed versions

  • 5.10.6

Solution

Upgrade to version 5.10.6 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

packagist/craftcms/cms/GHSA-xxpx-f366-4xpq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:21 +0000.