Skip to main content

WPFront User Role Editor CVE-2026-125301

| EUVDEUVD-2026-141349 HIGH
Improper Privilege Management (CWE-269)
2026-12-02 Wordfence GHSA-w596-vfg5-6mq3
7.5
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Subscriber-level user
  2. Delivery
    Read site-wide cached switch-back stack
  3. Exploit
    Obtain switch-back nonce for own ID
  4. Execution
    Trigger switch_user wp_set_auth_cookie for admin
  5. Impact
    Take over Administrator account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of the following concrete conditions, per the description: (1) the attacker holds an authenticated session at Subscriber level or above (PR:L); (2) a persistent object cache - specifically Redis or Memcached - is active on the site (the default WordPress non-persistent cache does not trigger the flaw); and (3) a legitimate administrator has used the plugin's 'User Switching' / 'Switch To' feature at least once, so that an admin switch-back stack has been written to the shared cache key wpfront_ure_user_switching_stack_<COOKIEHASH>. The attacker must also maintain an active authenticated session while these conditions hold. The core defects enabling it are: get_switched_users_stack() short-circuits all validation (Utils::decrypt(), COOKIEHASH comparison, and the 12-hour expiry check) on a cache hit after merely confirming a matching cookie name; admin_bar_menu_actions() renders the switch-back UI node with no current_user_can() check; and switch_user()'s current_user_can(self::CAP) gate runs only after wp_set_current_user($admin_id) has already swapped the request context, so it evaluates the admin's capabilities rather than the attacker's. LIMITING FACTORS: no persistent object cache, or no prior admin use of 'Switch To', makes the site non-exploitable; combined with the authentication requirement and the no-TTL cache dependency, these sharply narrow the exploitable population. The takeover targets a distinct, already-privileged Administrator account and does not promote the attacker's original account.

Impact

Signals point to a credible but conditional threat rather than a drop-everything emergency. The CVSS 3.1 base score is 7.5 with vector AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H: network-reachable and impacting confidentiality, integrity, and availability fully (complete admin takeover), but notably gated by AC:H (multiple attacker-uncontrolled preconditions) and PR:L (an authenticated Subscriber-or-above account is required). The vuln.today decision label is 'this_week', and the finding is attributed to Wordfence, a credible WordPress-vulnerability source. No EPSS score was supplied in the input, so exploitation probability cannot be quantified; absence of EPSS is a data gap, not a signal of low risk. This CVE is NOT in CISA KEV and there is no confirmed working proof-of-concept in the input - the only references are the Wordfence advisory and plugin source-code lines, not exploit code. The AC:H rating is well-grounded in the description's stated conditions: a persistent object cache (Redis/Memcached) must be active AND an administrator must have used 'Switch To' at least once while the attacker holds a live session. These stacked prerequisites materially lower real-world likelihood versus a raw 7.5, so this is better treated as a 'patch this cycle' item than a wormable internet-wide crisis - but on a site that genuinely meets the conditions, impact is total (full administrator account takeover). No conflicts between CVSS vector and description were found; the network vector plus authenticated-low-privilege framing is internally consistent.

Exploit ScenarioDerived

On a WordPress site using a persistent object cache (Redis or Memcached) where an administrator has used the plugin's 'Switch To' feature at least once, an authenticated Subscriber-level attacker reads the site-wide, user-agnostic cached switch-back stack and obtains a valid switch-back nonce bound to their own user ID. They trigger the switch-back flow, which calls wp_set_auth_cookie() for the administrator account, granting them a full admin session and complete site takeover. No public exploit is identified at time of analysis; the conditions require AC:H and an authenticated low-privilege session (PR:L), so this is not spray-and-pray against arbitrary targets.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Privilege escalation in the WPFront User Role Editor WordPress plugin through version 4.2.5 allows an authenticated Subscriber-level user to take over a separate, already-privileged Administrator account and thereby gain full site control (options, plugin installation, theme editing, user management). Exploitation is conditional: the site must run a persistent object cache such as Redis or Memcached, a legitimate administrator must have used the plugin's 'Switch To' feature at least once so that an administrator switch-back stack sits in the shared cache key wpfront_ure_user_switching_stack_<COOKIEHASH>, and the attacker must hold an active authenticated session while those conditions persist. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; the high attack complexity in the CVSS vector reflects these narrow prerequisites rather than an unreliable exploit, and sites without a persistent object cache or without prior admin use of Switch To are not exploitable.

RemediationAI

Update the WPFront User Role Editor plugin to 4.2.6, the release referenced by the advisory as superseding the vulnerable 4.2.5 tag, and confirm the installed version after upgrading; consult the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/63b409ea-8352-4748-b0c0-2c82d5b17183?source=cve for the vendor's confirmed fixed version and any additional guidance. If the update cannot be applied immediately, the most direct compensating control is to deactivate the plugin's User Switching / 'Switch To' feature entirely, since the exploit chain depends on the switch-back stack and rendered admin-bar node; be aware this removes a convenience function administrators may rely on. Flushing the persistent object cache (Redis or Memcached) clears any cached administrator switch-back stack, but because the key is rewritten whenever an administrator uses Switch To, flushing is only a temporary measure and does not remove the defect. Disabling the persistent object cache would also break the precondition, at the cost of a measurable performance regression on busy sites. Auditing and removing unnecessary Subscriber-and-above accounts reduces the pool of authenticated users who can reach the vulnerable code path, and reviewing administrator accounts and active sessions for unexpected switch-back activity helps detect attempts.

Affected VersionsENISA

WPFront User Role Editor 0 ≤4.2.5

Affected Packages

euvd wpfront_user_role_editor no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-269 improper privilege management problem in the plugin's User Switching implementation, which persists a switch-back stack into the WordPress object cache under a site-wide, user-agnostic key of the form wpfront_ure_user_switching_stack_<COOKIEHASH> with no TTL. Because the key is not scoped per user, any visitor whose cookie name matches can read the cached administrator stack: get_switched_users_stack() short-circuits all validation on a cache hit, skipping Utils::decrypt(), the COOKIEHASH comparison, and the 12-hour expiry check. Compounding this, admin_bar_menu_actions() renders the switch-back UI node without a current_user_can() check, and the current_user_can(self::CAP) gate inside switch_user() executes only after wp_set_current_user($admin_id) has already replaced the request context, so the capability check is evaluated against the administrator's capabilities instead of the attacker's. Chaining these defects lets a low-privileged authenticated user obtain a switch-back nonce bound to their own ID, trigger wp_set_auth_cookie() for the administrator account, and inherit that account's session. The affected code paths are in includes/users/class-user-switching.php of the 4.2.5 tag, and the dependencies that make the bug reachable - a persistent object cache backend (Redis/Memcached rather than the default non-persistent WordPress cache) and prior administrator use of Switch To - are what place the attack complexity at High in the assessed CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H vector.

Know when Wpfront User Role Editor gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Network-reachable (AV:N) but gated by attacker-uncontrolled preconditions - active object cache plus a prior admin switch (AC:H); needs a Subscriber account (PR:L); full admin takeover yields C:H/I:H/A:H, same security authority so S:U.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-125301 is a high-severity privilege escalation in the WPFront User Role Editor WordPress plugin (≤4.2.5) that enables a low-privileged authenticated user, such as a Subscriber, to hijack an Administrator account and seize full control of the site. This flaw is particularly dangerous for organizations running WordPress with persistent object caching (Redis or Memcached), as the required conditions for exploitation are already present in many production environments. Leadership should prioritize remediation because a successful attack results in complete site compromise, affecting data integrity, user trust, and regulatory compliance.

Business Impact: High
Compensating Controls

Disable or remove the WPFront User Role Editor plugin until a patch is available. If the plugin is essential, disable the 'Switch To' feature and flush the persistent object cache to remove any admin switch-back stacks. Restrict authenticated access to trusted users and monitor for unauthorized privilege escalations.

Threat Intelligence Overview

EPSS Score
0.8%
Top 41% exploitable
Prevalence
Medium
popular WordPress role-management plugin, not universally deployed
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy