WordPress plugins
CVE-2026-125301
WPFront User Role Editor <= 4.2.5 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to User Switching Cache Short-Circuit
- Severity
- High 7.5
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Attack
- Over the network · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H- Sources
- CVE Program
Description
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_) 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.
Affected software
| Software | Affected versions |
|---|---|
Wpfront User Role Editor (WordPress plugin)WordPress plugins · wp-plugin:wpfront-user-role-editor |
|
About WPFront User Role Editor
Easily allows you to manage WordPress user roles. You can create, edit, delete and manage capabilities, also copy existing roles.
- Active installations
- 30,000+WordPress.org, 2 Dec 2026
- Latest version
- 4.2.6WordPress.org, 2 Dec 2026
- Last updated
- 12 Nov 2026WordPress.org
- Rating
- 4.5 out of 5 (65 ratings)WordPress.org, 2 Dec 2026
- Requires WordPress
- 5.1WordPress.org
- Requires PHP
- 7.0WordPress.org
- Tested up to WordPress
- 7.1.5WordPress.org
- Author
- Syam MohanWordPress.org
- In the directory since
- 2 Mar 2014WordPress.org
This is the only vulnerability in WPFront User Role Editor in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-125301