WPFront User Role Editor <= 4.2.5 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to User Switching Cache Short-Circuit
Strategic Overview
- Status
- Patched in 4.2.6
- Affected Plugin
- WPFront User Role Editor
- Affected Version
<= 4.2.5- CVSS
- 7.5High
- Weakness type
- CWE-269 · Improper Privilege Management
- CVE
CVE-2026-125301
At a glance
CVE-2026-125301 is a high-severity Improper Privilege Management vulnerability in the WPFront User Role Editor WordPress plugin, affecting versions <= 4.2.5. It carries a CVSS score of 7.5 (reachable over the network; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Subscriber level or above. The issue is fixed in version 4.2.6; sites on affected versions should update now. Disclosed December 2026, reported by sermsak.
Vulnerability Overview
The WPFront User Role Editor plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in all versions up to, and including, 4.2.5 The vulnerability exists because the User Switching feature writes the switch-back user stack to the object cache under a site-wide, user-agnostic key (`wpfront_ure_user_switching_stack_<COOKIEHASH>`) with no TTL, while `get_switched_users_stack()` short-circuits all validation on a cache hit — returning the cached administrator stack after only confirming that a cookie with the matching name is present, bypassing `Utils::decrypt()`, the COOKIEHASH comparison, and the 12-hour expiry check — and `admin_bar_menu_actions()` renders the switch-back UI node with no `current_user_can()` check, and the `current_user_can(self::CAP)` gate in `switch_user()` executes only after `wp_set_current_user($admin_id)` has already replaced the request context, causing it to evaluate against the administrator's capabilities rather than the attacker's. This makes it possible for authenticated attackers with Subscriber-level access and above to obtain a valid switch-back nonce bound to their own ID, trigger `wp_set_auth_cookie()` for an administrator account, and achieve complete site takeover — including the ability to manage options, install plugins, edit themes, and manipulate user accounts. Exploitation requires that a persistent object cache (e.g., Redis or Memcached) is active on the site and that an administrator has used the Switch To feature at least once while the attacker maintains an active authenticated session. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-269: Improper Privilege Management
WPFront User Role Editor <= 4.2.5 carries this weakness at get_switched_users_stack(), and reaching it takes an account at Subscriber level or above. Improper privilege management means the code lets an account end up with capabilities its role should not have.
It converts a low-privileged account into an administrative one, which makes every other restriction on the site irrelevant. For WPFront User Role Editor the fix is 4.2.6: builds <= 4.2.5 are affected, anything from 4.2.6 onward is not.
Remediation
Update to version 4.2.6, or a newer patched version
How does WordSec protect against this?
Because it turns on account access, WordSec's login security is the relevant layer: role-based two-factor, captcha and brute-force limits raise the cost of getting the account this needs. None of that substitutes for the fix: WPFront User Role Editor 4.2.6 closes this, and updating the plugin is the step that ends it.
- Login Security
- Alerts
External References
Related records
Other vulnerabilities in WPFront User Role Editor
- 8.8CVE-2025-3064: WPFront User Role Editor CSRF to Privilege Escalation
CVE-2025-3064 - 6.4CVE-2025-60102: WPFront User Role Editor <= 4.2.3 Stored XSS
CVE-2025-60102 - 6.1WPFront User Role Editor < 3.2.1.11184 Reflected Cross-Site Scripting
- 6.1CVE-2021-24984: WPFront User Role Editor <= 3.2.0 Reflected XSS
CVE-2021-24984 - 4.3CVE-2024-2931: WPFront User Role Editor Limited Information Exposure
CVE-2024-2931
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C