Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97652 Overview
CVE-2026-97652 is a Reflected Cross-Site Scripting (XSS) vulnerability in the WP Statistics WordPress plugin, marketed as a privacy-friendly Google Analytics alternative. The flaw affects all plugin versions up to and including 14.16.14. It stems from insufficient input sanitization and output escaping of the REQUEST_URI query-parameter key. Unauthenticated attackers can inject arbitrary web scripts that execute in a victim's browser when the victim clicks a crafted link. The vulnerability is classified under [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in an administrator's browser session, enabling session hijacking, administrative action abuse, or injection of malicious content into the WordPress admin interface.
Affected Products
- WP Statistics plugin for WordPress, all versions through 14.16.14
- Fixed in WP Statistics 14.16.15
- WordPress sites running the vulnerable plugin with authenticated administrators
Discovery Timeline
- 2026-10-02 - CVE-2026-97652 published to NVD
- 2026-10-03 - Last updated in NVD database
Technical Details for CVE-2026-97652
Vulnerability Analysis
The vulnerability resides in the plugin's handling of the server-provided REQUEST_URI value and specifically the keys of query parameters parsed from it. Affected code paths in the plugin render these values back into the admin interface without proper escaping. According to the Wordfence Vulnerability Report, the issue manifests in the Referrals admin page and in JavaScript filter generation logic.
Exploitation requires user interaction. An attacker crafts a URL containing a malicious query-parameter key and delivers it through phishing, social media, or embedded links. When an authenticated administrator loads the URL, the plugin reflects the attacker-controlled key into the page markup, executing the injected script in the admin's browser context.
Root Cause
The root cause is missing sanitization on input derived from $_SERVER['REQUEST_URI'] and missing output escaping when that data is written into HTML or JavaScript contexts. Relevant locations include src/Service/Admin/Referrals/ReferralsPage.php (lines 258, 283, 310), src/Abstracts/MultiViewPage.php (line 82), and assets/dev/javascript/filters/generator.js (lines 383 and 392). The fix in WordPress Changeset #3722421 applies proper escaping before output.
Attack Vector
The attack vector is network-based and requires user interaction. The attacker does not need authentication. The scope changes because script executes in the WordPress admin origin, allowing access to session cookies, nonces, and administrative actions. The vulnerability is well suited to targeted phishing campaigns against WordPress administrators.
See the GitHub Pull Request #1148 for the full patch set and the Changeset Comparison between 14.16.14 and 14.16.15.
Detection Methods for CVE-2026-97652
Indicators of Compromise
- Inbound HTTP requests to /wp-admin/admin.php?page=wp-statistics* containing query-parameter keys with HTML tags, angle brackets, javascript: schemes, or encoded script payloads.
- Admin referrer logs showing externally originating URLs with abnormal query-string structures targeting the WP Statistics Referrals page.
- Unexpected outbound requests from administrator browsers immediately following access to WP Statistics admin pages.
Detection Strategies
- Deploy a Web Application Firewall rule that blocks requests to WP Statistics admin endpoints when query-parameter keys contain <, >, ", or script tokens.
- Monitor web server access logs for unusually long or malformed query-string keys referencing wp-statistics.
- Review WordPress audit logs for unexpected administrative actions originating from legitimate admin accounts within minutes of accessing crafted URLs.
Monitoring Recommendations
- Alert on new or modified administrator accounts, plugin installations, or theme file edits following WP Statistics admin page access.
- Instrument browser-side Content Security Policy (CSP) report-only mode on /wp-admin/ to surface inline-script violations.
- Correlate email gateway telemetry with WordPress admin access logs to identify phishing-delivered links referencing WP Statistics pages.
How to Mitigate CVE-2026-97652
Immediate Actions Required
- Update the WP Statistics plugin to version 14.16.15 or later on every WordPress site in the environment.
- Audit administrator accounts for unauthorized changes, newly created users, and modified roles since the plugin was first installed.
- Rotate administrator passwords and invalidate active WordPress sessions if exploitation is suspected.
Patch Information
The vendor fixed the issue in WP Statistics 14.16.15. The patch adds proper sanitization and escaping across the affected ReferralsPage.php, MultiViewPage.php, and generator.js code paths. Review the WordPress Changeset #3722421 and the GitHub Pull Request #1148 for implementation details.
Workarounds
- Restrict access to /wp-admin/ by IP allow-list at the web server or WAF layer until patching is complete.
- Deploy a Content Security Policy that disallows inline scripts within the WordPress admin interface to limit payload execution.
- Train administrators to avoid clicking unsolicited links that reference WordPress admin URLs or plugin pages.
# Configuration example: update WP Statistics via WP-CLI
wp plugin update wp-statistics --version=14.16.15
wp plugin get wp-statistics --field=version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

