CVE Watch

FireBox and Essential Widgets: admin takeover through your site's search box

· 7 min read
A magnifying glass lying on a laptop keyboard, magnifying an administrator access card on a lanyard, with a website search bar glowing on the screen behind it

If you run FireBox or Essential Widgets, update today: FireBox to 3.1.18, Essential Widgets to 3.2.2. Two critical bugs, CVE-2026-142640 and CVE-2026-142685, published December 4, let a stranger take over an administrator account. On many classic-theme sites the attacker doesn’t need an account, because a search URL can be enough. It’s the same kind of mistake as the WP Event Aggregator bug published December 2, with a worse result: an admin login instead of a stray shortcode.

At a glance

CVEsCVE-2026-142640 (FireBox), CVE-2026-142685 (Essential Widgets)
PluginsFireBox – WooCommerce Popup Builder (firebox), about 6,000 active installs. Essential Widgets (essential-widgets), about 10,000 active installs.
TypeA shortcode setting passed to WordPress as a PHP function to call, leading to administrator account takeover
SeverityCVSS 9.8 (Critical) for both
AffectedFireBox 3.1.17 and earlier. Essential Widgets 3.2.1 and earlier.
FixedFireBox 3.1.18 (changelog dated December 3, 2026). Essential Widgets 3.2.2 (updated December 3, 2026).
Found byCHOIGYEONGMIN, published by Wordfence on December 4, 2026
StatusWordfence’s advisories report no attacks as of December 4, 2026

What’s wrong

Some WordPress functions take the name of another PHP function as a setting and call it later. wp_nav_menu() has fallback_cb, which runs when a menu doesn’t exist. wp_tag_cloud() has topic_count_scale_callback, which runs once for each tag to size it. Both plugins offer shortcodes that pass these settings straight through from the shortcode’s own attributes.

  • FireBox has a navigation menu shortcode, [fboxNavigationMenu] or [firebox.navigationMenu]. It cleaned fallback_cb with sanitize_text_field(), which strips HTML but leaves a function name untouched, and passed it to wp_nav_menu(). Wordfence says an attacker can name WordPress’s own functions here and chain several shortcodes to change an administrator’s login details.
  • Essential Widgets has a tag cloud shortcode, [ew-tags]. It passed topic_count_scale_callback to wp_tag_cloud() with no check at all, and WordPress calls that function with each tag’s post count.

Wordfence’s Essential Widgets example uses wp_set_auth_cookie, which logs a browser in as the user whose ID it’s given. Pair it with a tag whose post count matches an admin’s user ID, often 1, and the attacker gets that admin’s login cookies. The plugin’s widget version of the tag cloud already checked this setting. The shortcode version didn’t.

Shortcodes are normally written by people who can edit posts, which is why a Contributor account is the usual minimum for bugs like this. What makes these two critical is a second path that needs no account.

How the search box becomes a way in

Wordfence describes this path, and the WordPress 7.1 code confirms it. When a page shows the Search block, the block puts the current search term into its search field. If that block sits in a widget area or in a post or page, WordPress then runs shortcodes over the finished HTML. That includes a shortcode in the search term, even though it ends up inside the search field’s value attribute. WordPress runs shortcodes it finds in attributes and filters only what they output, so the shortcode has already done its work.

So an attacker requests a search URL, /?s= followed by one of these shortcodes, and the results page runs it. According to Wordfence, this works where the Search block is:

  • In a widget area. Wordfence notes it’s one of the default widgets on classic themes.
  • Inside a post or page’s content, on any theme.

Wordfence also says that without a Search block in one of those places, the attacker needs at least a Contributor account to use the shortcode.

A reading of the core code, not a statement from Wordfence, suggests two places that aren’t affected. One is the older classic Search widget, which isn’t a block. The other is a Search block in a block theme’s header template, where WordPress runs shortcodes before the blocks are built. Update either way. Don’t rely on this reading to decide you’re safe.

The WP Event Aggregator article ended on the same point: sanitize_text_field() and esc_attr() don’t make text safe for shortcodes. This time, the text that reaches a shortcode can be a search term from anyone on the internet.

What an attack would look like

Because the attack is in the URL’s query string, standard access logs normally record it, if your host keeps them. Look for requests with an s= search parameter that contains a square bracket (or its encoded form %5B), especially with one of these shortcode names:

fboxNavigationMenu
firebox.navigationMenu
ew-tags
ew-menu

On Linux hosting with shell access, this finds attempts. Use zgrep instead of grep to include older, compressed logs, and adjust the path for your host:

grep -iE 's=[^ ]*(%5B|\[)' /path/to/access.log | grep -iE 'fbox|firebox|ew-tags|ew-menu'

A match means someone tried, not that it worked. ew-menu is Essential Widgets’ menu shortcode. Its old code passed fallback_cb to WordPress after checking only that the function exists, and 3.2.2 replaced that with the same allowlist. Wordfence’s advisory doesn’t mention this shortcode.

What to do

1. Update

Go to Plugins and update whichever you run, or both: FireBox to 3.1.18, Essential Widgets to 3.2.2. If you can’t update right away, deactivate the plugin until you can. If you can’t do that either, remove the Search block from your widget areas and from posts and pages, including any synced patterns that contain it. That closes the no-login path, but not the Contributor path.

2. Check whether you were hit

Search your access logs as above. Then look in Users for administrators you don’t recognize, and for recent password or email changes on existing admin accounts. Wordfence describes the attacker taking over an existing admin account rather than promoting their own, so a familiar name on the list isn’t proof that nothing happened.

If you see signs of misuse, log every user out by changing the authentication keys and salts in wp-config.php, and reset all administrator passwords. Check for new plugins, files in wp-content/mu-plugins/, and changes to wp-config.php and .htaccess.

3. Defense in depth: keep brackets out of printed search terms

A small must-use plugin can strip square brackets from the search term wherever WordPress prints it through get_search_query(), which is what the Search block uses. That closes the search-box route for this bug and for any other plugin with the same kind of shortcode. It doesn’t protect code that reads the search parameter directly, and it doesn’t replace updating.

Save this as wp-content/mu-plugins/strip-search-brackets.php, creating the mu-plugins folder if it doesn’t exist:

<?php
/**
 * Remove square brackets from the search term, so a search
 * can't be turned into a shortcode when the term is printed.
 */
add_filter( 'get_search_query', function ( $query ) {
	return str_replace( array( '[', ']' ), '', $query );
} );

This is a hardening step suggested here, not something from Wordfence or the plugin developers, and it hasn’t been tested on a live site. Try it on staging first. It doesn’t change which posts a search finds, only the term WordPress shows back. A visitor who searches for something like array[0] will see it shown without the brackets.

Where sources disagree

  • Who can attack. Wordfence rates both 9.8, the score for an attacker with no account. By Wordfence’s own description, that applies only where a Search block sits in a widget area or in content. Elsewhere the attacker needs a Contributor account, which in our view would usually earn a lower score.
  • CVE records. Wordfence lists both CVE numbers, but the CVE Program’s record service returned no record for either one on December 4.

The bigger lesson

For developers: a setting that WordPress will call as a function isn’t a text setting, and no sanitizing function makes it safe. The only safe check is a fixed list of allowed functions, and that’s what both fixes do. FireBox now accepts only wp_page_menu as a menu fallback and dropped its unused walker option. Essential Widgets added an allowlist with WordPress’s three default callbacks. Even function_exists(), which the old Essential Widgets menu code relied on, isn’t enough. It confirms that a function exists, not that it’s safe to call.

For site owners: every shortcode a plugin adds may run on text you didn’t write, and this week that included search terms. FireBox’s bug sat in a navigation menu shortcode, and Essential Widgets’ in a tag cloud shortcode. Many sites never use either, but the shortcodes were active anyway. Features you don’t use still count when a plugin has to earn its place on your site.

Sources