CVE-2026-122232: SlimStat Analytics <= 6.1.2 - Unauthenticated Stored Cross-Site Scripting via HTTP User-Agent Header
The SlimStat Analytics – Real-Time Stats, Heatmaps & Ecommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'HTTPUSERAGENT' parameter in all versions up to, and including, 6.1.2 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. This requires the non-default 'Show user agent' (slimstatoptions[showcompleteuseragenttooltip]) setting to be enabled, which causes the raw stored User-Agent value to be used as the tooltip title instead of a sanitized browser name.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable the “Show user agent” setting to prevent raw stored User-Agent values from being used as tooltip titles.
SlimStat Analytics for WordPress slimstat_options[show_complete_user_agent_tooltip] = false
Event History
Frequently Asked Questions
Which deployments are affected in practice?
Only SlimStat Analytics installations with the non-default “Show user agent” setting (slimstat_options[show_complete_user_agent_tooltip]) enabled are affected by the described execution path. Versions up to and including 6.1.2 are in scope.
What does an attacker need to do to exploit this?
The attacker does not need authentication or user interaction to submit the payload. They need to send a crafted HTTP User-Agent value, and a user must later access a page that renders the stored value in the affected tooltip.
What can be done if updating is not immediately possible?
Disable the “Show user agent” option, which is the setting that causes the raw stored User-Agent value to be used as a tooltip title. Review stored analytics data for suspicious User-Agent strings before re-enabling it.
How can administrators check for attempted exploitation?
Inspect SlimStat’s stored analytics records for User-Agent values containing script-like or HTML markup. The relevant risk is raw User-Agent data being displayed through the complete-user-agent tooltip rather than a sanitized browser name.