CVE-2026-142685
9.8CriticalPublished Dec 5, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite
Critical
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-269
What an attacker gets
Unauthenticated attackers can take over any WordPress administrator account. They do this by triggering arbitrary PHP function calls through a shortcode attribute.
Root cause
The plugin fails to validate the topic_count_scale_callback shortcode attribute, allowing attackers to pass arbitrary function names to call_user_func.
Affected versions
Essential Widgets versions up to and including 3.2.1
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Update to the latest version of Essential Widgets. If an update is not available, deactivate the plugin immediately.
AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
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
Related Critical CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1426409.8CriticalUnauthenticated attackers can take over existing administrator accounts by injecting arbitrary function calls. This requires the WordPress Search block to be active on a page or widget.
- CVE-2026-1183259.3CriticalUnauthenticated attackers can gain full administrative access to BioTime Pro. They need to extract hard-coded cryptographic constants from the application binary to bypass authentication.
- CVE-2026-1183239.3CriticalUnauthenticated remote attackers can execute arbitrary OS commands as the application user. This requires network access to the language-management endpoint.
- CVE-2026-14488410.0CriticalRemote attackers can achieve unauthenticated code execution on the device. This is a stack-based buffer overflow triggered by sending malicious input to the web interface.
- CVE-2026-1261119.0CriticalAuthenticated users with scripting permissions can execute arbitrary code on the server. This requires the attacker to have the Scripting Developer role and scripting enabled.
- CVE-2026-1261069.2CriticalUnauthenticated attackers can bypass authentication to gain full access as any user, including administrators. This affects accounts provisioned via SAML, LDAP, or CAS that lack secure password hashes.