# WP Statistics <= 14.16.19 - Cross-Site Request Forgery to Arbitrary Plugin Option Update

- **ID:** WPSEC-2026-3662
- **Plugin:** WP Statistics – Simple, privacy-friendly Google Analytics alternative (`wp-statistics`), https://wordpress.org/plugins/wp-statistics/
- **Affected versions:** from 14.13 before 14.16.20
- **Fixed in:** 14.16.20 (Update to 14.16.20 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-352
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-statistics
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3662/

## Description

The WP Statistics plugin for WordPress is vulnerable to Cross-Site Request Forgery via the 'option_updater' AJAX action in all versions up to, and including, 14.16.19. This is due to incorrect nonce validation: the handler accepted the generic 'wp_rest' nonce and wrote any option name to the plugin's settings. In addition, the admin pages copied every URL query parameter into the parameters that page scripts send with their AJAX requests, such as the request the Privacy Audit page sends when it loads. This makes it possible for unauthenticated attackers to change arbitrary plugin settings, such as the minimum roles allowed to view statistics or manage the plugin, or the notification e-mail address, if they can trick a site administrator into clicking a crafted link.

## References

- https://wpsec.com/vuln/WPSEC-2026-3662/
- https://plugins.svn.wordpress.org/wp-statistics/tags/14.16.20/
- https://wordpress.org/plugins/wp-statistics/

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

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.
