# Add Expires Headers & Optimized Minify <= 3.4.0 - Cross-Site Request Forgery to Minify Cache Purge

- **ID:** WPSEC-2026-4511
- **Plugin:** Add Expires Headers & Optimized Minify (`add-expires-headers`), https://wordpress.org/plugins/add-expires-headers/
- **Affected versions:** all versions before 4.0.0
- **Fixed in:** 4.0.0 (Update to 4.0.0 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 Low, affected versions Low (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/add-expires-headers
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4511/

## Description

The add-expires-headers plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 3.4.0 due to missing nonce validation on the purge-on-save branch of the minify purge handler. This makes it possible for unauthenticated attackers to purge the plugin's minify cache via a forged request, granted they can trick a site administrator into performing an action such as clicking on a link.

## References

- https://wpsec.com/vuln/WPSEC-2026-4511/
- https://plugins.svn.wordpress.org/add-expires-headers/tags/4.0.0/
- https://wordpress.org/plugins/add-expires-headers/

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

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.
