Vulnerabilities / User Role Editor / WPSEC-2026-4307

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

High 7.2 CWE-269Fixed in 4.68
ID
WPSEC-2026-4307
Plugin
User Role Editor (user-role-editor)
Affected
all versions before 4.68
Remediation
Update to 4.68 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-269
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-01
Attack surface
User Role Editor on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0