# Analytics Insights for Google Analytics 4 <= 6.3.12 - Unauthenticated Stored Cross-Site Scripting via Google Analytics Real-Time Report Data

- **ID:** WPSEC-2026-1319
- **Plugin:** Analytics Insights – Google Analytics Dashboard for WordPress (`analytics-insights`), https://wordpress.org/plugins/analytics-insights/
- **Affected versions:** all versions before 6.4
- **Fixed in:** 6.4 (Update to 6.4 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/analytics-insights
- **Fix released:** 2026-10-19
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1319/

## Description

The Analytics Insights plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Google Analytics real-time report data (page titles / screen names) in all versions up to, and including, 6.3.12, due to insufficient output escaping when these values are concatenated into HTML and inserted into the real-time report in the WordPress dashboard. This makes it possible for unauthenticated attackers to get crafted page titles recorded in the site's Google Analytics property and inject arbitrary web scripts that execute when a user with access to the analytics reports views the real-time report.

## References

- https://wpsec.com/vuln/WPSEC-2026-1319/
- https://plugins.svn.wordpress.org/analytics-insights/tags/6.4/
- https://wordpress.org/plugins/analytics-insights/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1319/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
