Vulnerability record · CVE-2022-25305 · published 24 February 2022
CVE-2022-25305: WP Statistics plugin IP parameter stored XSS in admin statistics pages
Veronalabs · Wp Statistics
The WP Statistics WordPress plugin fails to escape and sanitize the IP parameter in includes/class-wp-statistics-ip.php, allowing arbitrary script injection. Injected scripts execute when site administrators view the statistics pages, in versions up to and including 13.1.5.
Description
The WP Statistics WordPress plugin is vulnerable to Cross-Site Scripting due to insufficient escaping and sanitization of the IP parameter found in the ~/includes/class-wp-statistics-ip.php file which allows attackers to inject arbitrary web scripts onto several pages that execute when site administrators view a sites statistics, in versions up to and including 13.1.5.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Automated analysis
high priorityPublic exploit code and a very high EPSS score make exploitation likely despite the medium CVSS rating and required user interaction.
What it is
The WP Statistics WordPress plugin fails to escape and sanitize the IP parameter in includes/class-wp-statistics-ip.php, allowing arbitrary script injection. Injected scripts execute when site administrators view the statistics pages, in versions up to and including 13.1.5.
Impact
An attacker can run arbitrary JavaScript in an authenticated administrator's browser, enabling session theft, privilege abuse, or further compromise of the WordPress site.
Attack surface
Reachable over the network without authentication; the victim administrator must view the affected statistics pages, so user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:R).
Exploitation
Not listed in CISA KEV, but EPSS is very high (0.789, 99.6th percentile) and a public exploit reference exists, indicating meaningful real-world exploitation likelihood.
What to do
- Update WP Statistics to a version newer than 13.1.5 (patch changeset 2679983).
- If immediate patching is not possible, disable or remove the plugin until it can be updated.
- Restrict access to WordPress admin statistics pages to trusted administrators only.
- Review administrator accounts and sessions for signs of compromise after exposure.
Detection
- Inspect web server and WordPress logs for requests containing script payloads in the IP parameter.
- Monitor for unexpected JavaScript or iframe content rendered on WP Statistics admin pages.
- Audit administrator sessions for anomalous activity following statistics page views.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://gist.github.com/Xib3rR4dAr/af90cef7867583ab2de4cccea2a8c87d | ExploitThird Party Advisory |
| https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2679983%40wp-statistics&new=2679983%40w | PatchThird Party Advisory |
| https://www.wordfence.com/vulnerability-advisories/#CVE-2022-25305 | Third Party Advisory |
| https://gist.github.com/Xib3rR4dAr/af90cef7867583ab2de4cccea2a8c87d | ExploitThird Party Advisory |
| https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2679983%40wp-statistics&new=2679983%40w | PatchThird Party Advisory |
| https://www.wordfence.com/vulnerability-advisories/#CVE-2022-25305 | Third Party Advisory |
Track CVE-2022-25305 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-25305), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.