Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › PHP

CVE-2026-125301 — syammohanm WPFront User Role Editor

High · CVSS 7.5EPSS 0.8% First seen December 02, 2026
PHPWordPressWebNetwork devicesDatabasesVulnerabilities

Summary

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. 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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.5 CVSS 3.1 base score from the CNA (wordfence.com)

An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Login needed
yes, a normal user account
User action needed
no
Scope
stays within the vulnerable component
Impact
high on confidentiality, integrity and availability

Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness

  • CWE-269: Improper Privilege Management

Affected and fixed versions

ProductAffected versionsFixed in
syammohanm WPFront User Role Editor≤ 4.2.5—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • syammohanm WPFront User Role Editor

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-125301?

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 ) with no TTL, while getswitchedusersstack() short-circuits all… Weakness type: Improper Privilege Management (CWE-269).

How severe is CVE-2026-125301?

CVE-2026-125301 has a CVSS 3.1 base score of 7.5 (high), from the CNA (wordfence.com). An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-125301 being exploited?

Not as far as is known: CVE-2026-125301 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026. EPSS estimates a 0.8% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-125301?

syammohanm WPFront User Role Editor ≤ 4.2.5.

How do I fix CVE-2026-125301?

Follow the advisories and patches linked on this page under References for fixed versions and workarounds.

Timeline & sources

References

Related vulnerabilities & news