# User Role Editor <= 4.67.1 - Authenticated (Custom-level+) Privilege Escalation via Role Assignment Restriction Bypass

- **ID:** WPSEC-2026-4307
- **Plugin:** User Role Editor (`user-role-editor`), https://wordpress.org/plugins/user-role-editor/
- **Affected versions:** all versions before 4.68
- **Fixed in:** 4.68 (Update to 4.68 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-269
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/user-role-editor
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4307/

## Description

The User Role Editor plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.67.1 due to incomplete enforcement of its critical-capability restriction on role assignment. The 'Change role to...' bulk action check re-implemented WordPress request parsing and sanitized role IDs with sanitize_key(), so crafted request parameters could bypass it, and role assignments made by WordPress itself on the user profile page, the 'Add New User' page and the multisite 'Add Existing User' invitation were not checked at all. This makes it possible for authenticated attackers who were delegated the 'promote_users' capability to assign themselves or other users roles with capabilities they do not hold, such as administrator-level roles.

## References

- https://wpsec.com/vuln/WPSEC-2026-4307/
- https://plugins.svn.wordpress.org/user-role-editor/tags/4.68/
- https://wordpress.org/plugins/user-role-editor/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4307/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
