CVE-2026-125301: WPFront User Role Editor <= 4.2.5 - Authenticated (Subscriber+) Privilege Escalation via Account Takeover to User Switching Cache Short-Circuit
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 (wpfrontureuserswitchingstack<COOKIEHASH>) with no TTL, while getswitchedusersstack() 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 adminbarmenuactions() renders the switch-back UI node with no currentusercan() check, and the currentusercan(self::CAP) gate in switchuser() executes only after wpsetcurrentuser($adminid) 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 wpsetauthcookie() 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.
Affected Software
Event History
Frequently Asked Questions
What level of access does an attacker need?
An attacker must be authenticated to WordPress with at least Subscriber-level access. No user interaction is required.
What conditions are needed for exploitation?
The User Switching feature's cached switch-back stack must contain an administrator stack under the site-wide cache key, and the attacker must present a cookie with the matching name. The cache entry has no TTL, and a cache hit bypasses the normal decryption, COOKIEHASH, and 12-hour expiry validation.
What is the likely impact if exploitation succeeds?
A Subscriber or other low-privileged authenticated user can take over an administrator account through the user-switching flow. This can lead to high impact on confidentiality, integrity, and availability.