# WP Compress <= 7.30.00 - Unauthenticated Sensitive Information Exposure via Cache Purge Log File

- **ID:** WPSEC-2026-2236
- **Plugin:** WP Compress – Instant Performance & Speed Optimization (`wp-compress-image-optimizer`), https://wordpress.org/plugins/wp-compress-image-optimizer/
- **Affected versions:** all versions before 7.30.30
- **Fixed in:** 7.30.30 (Update to 7.30.30 or later.)
- **Severity:** Medium 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-532
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-compress-image-optimizer
- **Fix released:** 2026-10-30
- **Published:** 2026-11-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2236/

## Description

The WP Compress plugin for WordPress is vulnerable to Sensitive Information Exposure via the cache purge log in all versions up to, and including, 7.30.00, due to the plugin writing the complete old and new plugin options, including the WP Compress API key, unmasked to a predictable, publicly accessible file at wp-content/cachePurging.txt whenever a cache purge happens while the plugin's debug log is enabled. This makes it possible for unauthenticated attackers to download the file and obtain the site's WP Compress API key and other plugin configuration, on sites where an administrator has enabled the debug log.

## References

- https://wpsec.com/vuln/WPSEC-2026-2236/
- https://plugins.svn.wordpress.org/wp-compress-image-optimizer/tags/7.30.30/
- https://wordpress.org/plugins/wp-compress-image-optimizer/

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

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.
