CVE-2026-142685: Essential Widgets <= 3.2.1 - Unauthenticated Privilege Escalation via Account Takeover

Published Dec 5, 2026
·
Updated

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

1 affected component
Essential Widgets<=3.2.1

Event History

Dec 5, 2026
CVE Published
via MITRE·09:28 AM
Data Sourced
via MITRE·09:28 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

Which versions are affected?

All Essential Widgets versions up to and including 3.2.1 are affected.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203