Opti-Behavior – Heatmaps, Funnels & Shop Analytics for WooCommerce <= 1.11.3 - Unauthenticated Cross-Site Scripting via Visual Editor Helper postMessage Handler

Medium 6.1 CWE-79Fixed in 1.11.3.1
ID
WPSEC-2026-4451
Plugin
Opti-Behavior – Heatmaps, Funnels & Shop Analytics for WooCommerce (opti-behavior)
Affected
from 1.2.8 before 1.11.3.1
Remediation
Update to 1.11.3.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
Opti-Behavior – Heatmaps, Funnels & Shop Analytics for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The Opti-Behavior plugin for WordPress is vulnerable to DOM-Based Cross-Site Scripting via the A/B test visual editor helper script's postMessage handler in all versions up to, and including, 1.11.3, due to missing origin and source validation of incoming messages. The helper is loaded on any front-end page for a logged-in administrator when the 'opti_ab_visual_editor' or 'opti_ab_goal_selector' query parameter is present, with no nonce tying the request to the editor. It accepts commands from any window that sends a message tagged 'opti-ab-ve-parent', writes the supplied HTML through innerHTML and runs the supplied JavaScript snippets with the Function constructor. This makes it possible for unauthenticated attackers to run arbitrary web scripts in the site's origin under an administrator's session if they can trick the administrator into visiting a malicious page that opens or frames the site with those parameters and then sends crafted messages.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0