WordPress SlimStat Analytics Plugin Stored XSS Vulnerability (CVE-2026-7634)
The SlimStat Analytics plugin for WordPress is vulnerable to stored cross-site scripting (XSS) via the User-Agent header, allowing unauthenticated attackers to inject arbitrary web scripts if the 'show_complete_user_agent_tooltip' setting is enabled.
The SlimStat Analytics plugin for WordPress is susceptible to a stored cross-site scripting (XSS) vulnerability, identified as CVE-2026-7634. This flaw resides in versions up to and including 5.4.11. It stems from inadequate input sanitization and output escaping applied to the ‘User-Agent’ header. An unauthenticated attacker can exploit this vulnerability to inject malicious web scripts into pages. For the injected script to execute, the ‘show_complete_user_agent_tooltip’ setting must be explicitly enabled within the plugin’s configuration by an administrator; this setting is disabled by default. The successful exploitation of this vulnerability allows attackers to execute arbitrary JavaScript code in the context of a user’s browser when they access a page containing the injected payload.
Attack Chain
- An unauthenticated attacker crafts a malicious HTTP request with a User-Agent header containing a JavaScript payload.
- The attacker sends the HTTP request to a WordPress site running the vulnerable SlimStat Analytics plugin.
- The SlimStat Analytics plugin logs the malicious User-Agent string in the database without proper sanitization.
- An administrator enables the ‘show_complete_user_agent_tooltip’ setting in the SlimStat Analytics plugin configuration.
- A user visits a page where the User-Agent information is displayed via the tooltip.
- The stored XSS payload is rendered in the user’s browser.
- The injected JavaScript code executes within the user’s browser session.
- The attacker can then perform actions such as stealing cookies, redirecting the user, or defacing the website.
Impact
Successful exploitation of this stored XSS vulnerability (CVE-2026-7634) allows an unauthenticated attacker to execute arbitrary JavaScript code in the context of a user’s browser. This can lead to session hijacking, defacement of the WordPress site, or redirection to malicious sites. The vulnerability is triggered when the administrator enables the ‘show_complete_user_agent_tooltip’ option, increasing the likelihood of exploitation if this setting is enabled. While the base score is 7.2, the impact can be significant depending on the privileges of the compromised user.
Recommendation
- Upgrade the SlimStat Analytics plugin to the latest version, which contains a fix for CVE-2026-7634.
- Deploy the Sigma rule
Detect SlimStat User-Agent Header XSS Attemptto identify attempts to inject malicious JavaScript in the User-Agent header. - Review the configuration of the SlimStat Analytics plugin and ensure that the
show_complete_user_agent_tooltipsetting is disabled if not needed.
Detection coverage 2
Detect SlimStat User-Agent Header XSS Attempt
mediumDetects CVE-2026-7634 exploitation — attempts to inject XSS payloads into the User-Agent header targeting the SlimStat Analytics plugin for WordPress.
Detect SlimStat User-Agent in URI
lowDetects CVE-2026-7634 exploitation — User-Agent strings in URI parameters can be used to inject malicious code
Detection queries are available on the platform. Get full rules →