# WP-Optimize <= 4.7.1 - Missing Authorization to Page Cache Purge via Widget Save AJAX Action

- **ID:** WPSEC-2026-4611
- **Plugin:** WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance (`wp-optimize`), https://wordpress.org/plugins/wp-optimize/
- **Affected versions:** all versions before 4.7.2
- **Fixed in:** 4.7.2 (Update to 4.7.2 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-optimize
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4611/

## Description

The WP-Optimize plugin for WordPress is vulnerable to unauthorized cache purging in all versions up to, and including, 4.7.1 due to a missing capability check and nonce verification on the cache purge callback hooked to the wp_ajax_save-widget action, which fires before WordPress core validates the request. This makes it possible for authenticated attackers with Subscriber-level access and above to purge the entire page cache by sending a crafted AJAX request, degrading site performance.

## References

- https://wpsec.com/vuln/WPSEC-2026-4611/
- https://plugins.svn.wordpress.org/wp-optimize/tags/4.7.2/
- https://wordpress.org/plugins/wp-optimize/

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

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.
