Skip to content
NewA calmer, faster ZeroHour

CVE-2026-142685

Unauthenticated admin takeover in Essential Widgets through 3.2.1

CVSS 3.1
9.8 critical
EPSS
—
Published
·
Modified
Analyze CVE-2026-142685 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

Essential Widgets copies an attacker-supplied topic_count_scale_callback shortcode attribute into wp_tag_cloud() without the callable check used by the widget update path. WordPress then runs that named function with a taxonomy term's post count. An unauthenticated remote attacker can pass wp_set_auth_cookie and a term whose count equals a target user ID, such as the default administrator, so WordPress sets valid cookies for that already-privileged account. Sites running the plugin through 3.2.1 are affected.

What to do: No fixed release is listed. Remove or disable Essential Widgets through 3.2.1 until the vendor publishes a version that validates topic_count_scale_callback in the shortcode handler.

ProductAffected
Essential Widgets for WordPressall versions up to, and including, 3.2.1
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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 `ew_tags_render_shortcode()` function in `includes/ew-block/blocks/ew-tags/index.php` copying the attacker-supplied `topic_count_scale_callback` shortcode attribute directly into the argument array passed to `wp_tag_cloud()` without any `function_exists()`, `is_callable()`, 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 `wp_generate_tag_cloud()` then executes `call_user_func($args['topic_count_scale_callback'], $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 `topic_count_scale_callback=wp_set_auth_cookie` 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.

Ecosystems
WordPress
Weakness
CWE-269
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

0 stories

No ingested article mentions this CVE yet.