Description
The Opti-Behavior – Self-Hosted Heatmaps, Session Recordings, Funnels, A/B Testing & Smart Insights plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'targetUrl' parameter in all versions up to, and including, 1.9.2.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The ingest endpoint is gated only by a nonce that is publicly emitted to every anonymous visitor on tracked pages via optiBehaviorHeatmapConfig.nonce, meaning no account or authentication of any kind is required to write the malicious payload.
References8
- plugins.svn.wordpress.org/opti-behavior/
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.1/adm…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.1/adm…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.1/adm…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.1/ass…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.1/pub…
- plugins.trac.wordpress.org/changeset/3738510/opti-behavior/trun…
- www.wordfence.com/threat-intel/vulnerabilities/id/41f6939d-d87a…
Metrics
- CVSS 3.1
-
7.2
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 20 · as of 10 November 2026
- CWE
- CWE-79
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.