{
 "id": "WPSEC-2026-3681",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3681/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3681/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3681/index.md",
 "title": "Opti-Behavior <= 1.11.0 - Reflected Cross-Site Scripting via 'opti_assets_url' Parameter in Heatmap Capture Mode",
 "description": "The Opti-Behavior plugin for WordPress is vulnerable to Reflected (DOM-based) Cross-Site Scripting via the 'opti_assets_url' parameter of the heatmap capture mode in all versions up to, and including, 1.11.0. This is due to the capture script being enqueued on any front-end page requested with 'opti_capture_mode=1', with no capability or nonce check, and the script loading a JavaScript file from a base URL taken from the page address without validation. This makes it possible for unauthenticated attackers to execute arbitrary scripts in the context of the site if they can trick a user, such as an administrator, into clicking a crafted link.",
 "plugin": {
  "slug": "opti-behavior",
  "name": "Opti-Behavior",
  "full_name": "Opti-Behavior – Self-Hosted Heatmaps, Funnels, A/B Testing & Smart Insights",
  "wordpress_org": "https://wordpress.org/plugins/opti-behavior/",
  "advisories_url": "https://wpsec.com/vuln/plugin/opti-behavior/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/opti-behavior"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.1,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.0.9",
    "from_inclusive": true,
    "to": "1.11.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.0.9 before 1.11.1"
  ]
 },
 "introduced_in": "1.0.9",
 "fixed_in": "1.11.1",
 "remediation": "Update to 1.11.1 or later.",
 "fix_released": "2026-11-20T18:20:48+00:00",
 "published": "2026-11-21T18:41:52+00:00",
 "updated": "2026-11-21T09:02:19.492059+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3681/",
  "https://plugins.svn.wordpress.org/opti-behavior/tags/1.11.1/",
  "https://wordpress.org/plugins/opti-behavior/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/opti-behavior",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-21"
 }
}