{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142685","assignerOrgId":"b15e7b5b-3da4-40ae-a43c-f7aa60e62599","state":"PUBLISHED","assignerShortName":"Wordfence","dateReserved":"2026-12-02T23:00:40.164Z","datePublished":"2026-12-05T09:28:58.987Z","dateUpdated":"2026-12-05T09:28:58.987Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b15e7b5b-3da4-40ae-a43c-f7aa60e62599","shortName":"Wordfence","dateUpdated":"2026-12-05T09:28:58.987Z"},"affected":[{"vendor":"catchthemes","product":"Essential Widgets","versions":[{"version":"0","status":"affected","lessThanOrEqual":"3.2.1","versionType":"semver"}],"defaultStatus":"unaffected"}],"descriptions":[{"lang":"en","value":"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."}],"title":"Essential Widgets <= 3.2.1 - Unauthenticated Privilege Escalation via Account Takeover","references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f0b55cf5-1749-46c6-803c-de9e3a5815cf?source=cve"},{"url":"https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/ew-block/blocks/ew-tags/index.php#L120"},{"url":"https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/ew-block/blocks/ew-tags/index.php#L146"},{"url":"https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/widgets/class-ew-tags.php#L419"},{"url":"https://plugins.trac.wordpress.org/browser/essential-widgets/tags/3.2.1/includes/ew-block/blocks/ew-tags/index.php#L121"},{"url":"https://wordpress.org/plugins/essential-widgets/"},{"url":"https://plugins.trac.wordpress.org/changeset/3842053/essential-widgets/trunk/includes/ew-block/blocks/ew-tags/index.php"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-269 Improper Privilege Management","cweId":"CWE-269","type":"CWE"}]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"}}],"credits":[{"lang":"en","type":"finder","value":"CHOIGYEONGMIN"}],"timeline":[{"time":"2026-12-02T23:15:29.000Z","lang":"en","value":"Vendor Notified"},{"time":"2026-12-04T20:44:18.000Z","lang":"en","value":"Disclosed"}]}}}