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 'country_name' Location 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 heatmap recording endpoint accepts unauthenticated requests protected only by a nonce that any visitor can freely obtain via the public opti_behavior_refresh_nonces AJAX action, removing any practical barrier to injecting the malicious payload.
References8
- plugins.svn.wordpress.org/opti-behavior/
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.0/adm…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.0/adm…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.0/adm…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.0/ass…
- plugins.trac.wordpress.org/browser/opti-behavior/tags/1.9.0/inc…
- plugins.trac.wordpress.org/changeset/3738510/opti-behavior/trun…
- www.wordfence.com/threat-intel/vulnerabilities/id/6c631593-4857…
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: 16 · 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.