Read the docs

Privilege escalation in WPFront User Role Editor plugin

Priority MEDIUM 48CWE-269Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
Privilege escalation
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-269.

Summary

The WPFront User Role Editor plugin for WordPress is affected up to and including 4.2.5. Improper privilege management (CWE-269) in its User Switching feature lets an authenticated attacker with Subscriber access or higher take over an administrator account and gain full site control. Exploitation requires a persistent object cache and a prior use of Switch To by an administrator.

Written with Claude Haiku 5.5 from the sources below · 2026-12-02

Description from the CNA

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.

Why it matters now

Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
syammohanmWPFront User Role Editorup to 4.2.5—No fix listedCNA
  • WPFront User Role Editor Vendorsyammohanm Affected up to 4.2.5 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for WPFront User Role Editor.

Written with Claude Haiku 5.5 from the sources below · 2026-12-02

Timeline

  1. 2026-12-02 Threatist record created from CVE-2026-125301
  2. 2026-12-02 Alias added: GHSA-w596-vfg5-6mq3

References

  • TI-2025-02676 WPFront User Role Editor <= 4.2.1 - Cross-Site Request Forgery to Privilege Escalation via whitelist_options Function CVSS 3.1HIGH 8.8
  • TI-2026-67462 WPFront Notification Bar <= 3.5.1 - Reflected Cross-Site Scripting via REQUEST_URI CVSS 3.1MEDIUM 6.1

Sources