CVE-2026-41128: Craft CMS has a Missing Authorization Check on User Group Removal via save-permissions Action

Published Apr 14, 2026
·
Updated

Summary

The actionSavePermissions() endpoint allows a user with only viewUsers permission to remove arbitrary users from all user groups. While saveUserGroups() enforces per-group authorization for additions, it performs no equivalent authorization check for removals, so submitting an empty groups value removes all existing group memberships.

Affected Versions

- Craft CMS 5.6.0 through 5.9.14 (latest release at time of report) - Regression introduced in 5.6.0 when the viewUsers permission was added - Prior to 5.6.0, editedUser() required editUsers, which implicitly protected this endpoint - Requires Pro edition or higher (the vulnerable code path is gated by CmsEdition::Pro)

Vulnerability Details

Root Cause

This is a regression introduced in Craft CMS 5.6.0 when the viewUsers permission was added. Before that change, editedUser() required editUsers permission for accessing other users’ data, which implicitly protected actionSavePermissions(). After the change, actionSavePermissions() became reachable for users with read-only access to other users, but the underlying group-saving logic still lacked authorization for group removals.

The vulnerability has two components:

1. actionSavePermissions() reachable with read-only access: The action only requires a control panel request and delegates to editedUser(), which now only checks viewUsers — a permission explicitly documented as "read-only access to user elements."

2. Asymmetric authorization in saveUserGroups(): The method checks assignUserGroup permission only when adding a user to a new group. When the groups parameter is an empty string (resulting in an empty array), the loop is skipped entirely, no authorization checks are run, and all group memberships are removed.

Prerequisites

- Attacker has a control panel account with accessCp and viewUsers permissions only - Target user belongs to one or more user groups that grant additional permissions - Pro edition or higher

Attack Steps

1. Attacker authenticates to the Control Panel 2. Attacker sends a POST request to actions/users/save-permissions with: - userId = target user's ID - groups = (empty string) 3. All group memberships for the target user are removed 4. All permissions inherited from those groups are immediately revoked

Impact

- Privilege revocation: An attacker can strip group-based permissions from arbitrary users, including accounts whose effective access derives from group membership - Denial of access: Users lose access to sections, volumes, and features that were granted through group membership - Bypass of elevated session requirement: Group removal does not trigger requireElevatedSession() (which is only triggered when new groups are added)

Other sources

Craft CMS has a Missing Authorization Check on User Group Removal via save-permissions Action

— Packagist

Craft CMS is a content management system (CMS). In versions 5.6.0 through 5.9.14, the actionSavePermissions() endpoint allows a user with only viewUsers permission to remove arbitrary users from all user groups. While saveUserGroups() enforces per-group authorization for additions, it performs no equivalent authorization check for removals, so submitting an empty groups value removes all existing group memberships. Version 5.9.15 contains a patch.

— NVD

Affected Software

3 affected componentsFixes available
Craft CMS Craft CMS>=5.6.0<=5.9.14
composer/craftcms/cms>=5.6.0, <5.9.15
5.9.15
composer/craftcms/cms>=5.6.0<5.9.15
5.9.15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 5.9.15
  2. Upgrade

    Upgrade Craft CMS to a version that resolves this vulnerability.

    Fixed in 5.9.15

Event History

Apr 14, 2026
Advisory Published
via Packagist·11:34 PM
Data Sourced
via Packagist·11:34 PM
DescriptionSeverityAffected Software
Data Sourced
via GitHub·11:34 PM
DescriptionWeaknessAffected Software
Apr 21, 2026
CVE Published
via MITRE·11:32 PM
Data Sourced
via MITRE·11:32 PM
DescriptionWeakness
Data Sourced
via OSV·11:32 PM
DescriptionSeverityWeakness
Apr 22, 2026
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-41128?

CVE-2026-41128 has been classified as a medium severity vulnerability due to the potential impact of unauthorized user removals.

2

How do I fix CVE-2026-41128?

To fix CVE-2026-41128, upgrade Craft CMS to version 5.9.15 or later where the issue is resolved.

3

Who is affected by CVE-2026-41128?

CVE-2026-41128 affects users of Craft CMS versions 5.6.0 through 5.9.14.

4

What is the attack vector for CVE-2026-41128?

The attack vector for CVE-2026-41128 is through the actionSavePermissions() endpoint which can be exploited by users with only 'viewUsers' permission.

5

What are the consequences of CVE-2026-41128?

The consequences of CVE-2026-41128 include unauthorized removal of users from groups, potentially disrupting access control.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203