CVE-2026-142685 · catchthemes / Essential Widgets
CVE-2026-142685 · Reported 5 Dec 2026
Full advisory details, affected packages, severity context, and original source.
Affected technology
Affected versions and fixes
Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.
catchthemes / Essential Widgets · semver
CVE vendor record- affected: All earlier versions · through 3.2.1 (inclusive) · semver
Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.
Other versions: unaffected according to the vendor record.
Advisory overview
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.
How Cevnitra tracks this
Cevnitra maps this NVD record onto PHP inventories. Teams watching catchthemes / Essential Widgets get a watchlist hit when a scan or advisory refresh matches CVE-2026-142685.
Related references
- https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/ew-block/blocks/ew-tags/index.php#L120
- https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/ew-block/blocks/ew-tags/index.php#L121
- https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/ew-block/blocks/ew-tags/index.php#L146
- https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/widgets/class-ew-tags.php#L419
- https://plugins.trac.wordpress.org/changeset/3842053/essential-widgets/trunk/includes/ew-block/blocks/ew-tags/index.php
- https://wordpress.org/plugins/essential-widgets/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f0b55cf5-1749-46c6-803c-de9e3a5815cf?source=cve
