CVE-2026-142685: Essential Widgets <= 3.2.1 - Unauthenticated Privilege Escalation via Account Takeover
The Essential Widgets plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in all versions up to, and including, 3.2.1 This is due to the ewtagsrendershortcode() function in includes/ew-block/blocks/ew-tags/index.php copying the attacker-supplied topiccountscalecallback shortcode attribute directly into the argument array passed to wptagcloud() without any functionexists(), iscallable(), or allowlist check — a validation step that is present in the widget's own update() method in class-ew-tags.php but was omitted from the shortcode handler. WordPress core's wpgeneratetagcloud() then executes calluserfunc($args['topiccountscalecallback'], $tag->count), invoking any named PHP function with a taxonomy term's post count as the first integer argument. This makes it possible for unauthenticated attackers to supply topiccountscalecallback=wpsetauthcookie and arrange for a taxonomy term whose count matches a target user's ID — such as user ID 1 for the default administrator — causing WordPress to mint and set valid authentication cookies for that account, granting the attacker full administrative access. 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
Who can exploit this vulnerability?
An unauthenticated remote attacker can exploit it; no WordPress account or user interaction is required. The attacker must be able to invoke the affected shortcode handler and arrange for a taxonomy term with a post count matching the target user’s numeric ID.
What access can an attacker obtain?
An attacker can cause WordPress to create valid authentication cookies for a target account. If the matching ID is an administrator account, such as the default user ID 1, this grants full administrative access.
Which versions are affected?
All Essential Widgets versions up to and including 3.2.1 are affected.
How can I determine whether an attempted compromise targeted this issue?
Review shortcode usage and relevant request or application logs for the topic_count_scale_callback attribute, especially values such as wp_set_auth_cookie. Also investigate unexpected authenticated sessions or administrative activity for accounts whose IDs could match taxonomy-term post counts.