Stored Cross-Site Scripting in WP Statistics Plugin
An unauthenticated stored XSS vulnerability in the WP Statistics WordPress plugin allows attackers to inject malicious scripts via the utm_campaign parameter.
CVE search metadata
CVE search record: CVE-2026-15780. Severity: high. CVSS: 7.2. KEV: no. Product: WP Statistics (14.16.8). Brief: Stored Cross-Site Scripting in WP Statistics Plugin. Brief link: https://feed.craftedsignal.io/briefs/2026-08-wp-statistics-xss/
The WP Statistics plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) in all versions up to and including 14.16.8. The vulnerability arises from improper input sanitization and output escaping of the 'utm_campaign' parameter. Attackers can exploit this by sending a crafted request to the public /wp-statistics/v2/hit REST endpoint. Because the plugin logic uses a base64-encoded 'page_uri' parameter that overrides the standard server REQUEST_URI, attackers can bypass existing sanitization mechanisms. This allows for the injection of arbitrary JavaScript which is then stored in the database. When an administrator or authenticated user views the statistics dashboard, the injected script executes within their session context, potentially leading to unauthorized actions or credential theft. This vulnerability is critical for WordPress administrators as it allows unauthenticated, remote exploitation.
Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary JavaScript in the browser of any user who views the statistics dashboard, which typically includes site administrators. This can lead to account takeover, session hijacking, or the distribution of further malicious content to site visitors.
Recommendation
- Immediately update the WP Statistics plugin to version 14.16.9 or higher to patch CVE-2026-15780.
- Monitor web server logs for POST requests directed to /wp-statistics/v2/hit containing suspicious payloads or high volumes of base64-encoded strings in the 'page_uri' parameter.
- Audit the WP Statistics database tables for injected
<script>oronerrortags within the statistics-related fields.
Immediate actions
Patch WP Statistics plugin to version 14.16.9 or higher.
Mitigations
Block or filter malicious inputs to the /wp-statistics/v2/hit endpoint at the WAF level.
CVE-2026-15780
Detection coverage 1
Detect CVE-2026-15780 Exploitation - Stored XSS Attempt in WP Statistics
highDetects exploitation attempts against the WP Statistics plugin by identifying suspicious base64 payloads in the page_uri parameter of the hit REST endpoint.
Detection queries are available on the platform. Get full rules →