{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4451",
 "modified": "2026-12-03T12:50:55Z",
 "published": "2026-12-03T12:50:55Z",
 "summary": "Opti-Behavior – Heatmaps, Funnels & Shop Analytics for WooCommerce <= 1.11.3 - Unauthenticated Cross-Site Scripting via Visual Editor Helper postMessage Handler",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "opti-behavior"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "1.2.8"
      },
      {
       "fixed": "1.11.3.1"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 1.2.8 before 1.11.3.1"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4451/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/opti-behavior/tags/1.11.3.1/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/opti-behavior/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4451/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
