# Essential Widgets <= 3.2.1 - Authenticated (Contributor+) Privilege Escalation via Tags Block and Shortcode Callback Attributes

- **ID:** WPSEC-2026-4593
- **Plugin:** Essential Widgets (`essential-widgets`), https://wordpress.org/plugins/essential-widgets/
- **Affected versions:** from 1.8 before 3.2.2
- **Fixed in:** 3.2.2 (Update to 3.2.2 or later.)
- **Severity:** High 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/essential-widgets
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4593/

## Description

The Essential Widgets plugin for WordPress is vulnerable to Privilege Escalation via the 'topic_count_text_callback' and 'topic_count_scale_callback' attributes of its Tags block and [ew-tags] shortcode in versions 1.8 up to, and including, 3.2.1. This is due to the attribute values being passed unfiltered to wp_tag_cloud(), which invokes them with call_user_func(). This makes it possible for authenticated attackers, with Contributor-level access and above, to call arbitrary PHP functions such as wp_set_auth_cookie when the block or shortcode is rendered, which can be used to authenticate as another user such as an administrator and escalate their privileges.

## References

- https://wpsec.com/vuln/WPSEC-2026-4593/
- https://plugins.svn.wordpress.org/essential-widgets/tags/3.2.2/
- https://wordpress.org/plugins/essential-widgets/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4593/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
