CVE-2026-142685 — WordPress
CRITICALCVE-2026-142685 is a critical-severity (CVSS 9.8) Improper Privilege Management vulnerability. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
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()`…
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.
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
The records we use list no fixed release for CVE-2026-142685. Check the upstream advisory for a patched version, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
Frequently Asked Questions
Is CVE-2026-142685 in your dependencies?
Find it across your dependency tree, including transitive dependencies.