# Optimole <= 4.2.20 - Unauthenticated Sensitive Information Exposure via Publicly Accessible Log Files

- **ID:** WPSEC-2026-4017
- **Plugin:** Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization (`optimole-wp`), https://wordpress.org/plugins/optimole-wp/
- **Affected versions:** from 3.11.0 before 4.2.21
- **Fixed in:** 4.2.21 (Update to 4.2.21 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-532
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/optimole-wp
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4017/

## Description

The Optimole plugin for WordPress is vulnerable to Sensitive Information Exposure via its media offload and rollback log files in versions 3.11.0 up to, and including, 4.2.20, due to the plugin writing these logs to fixed, predictable file names (offload.log, rollback.log) in the web-accessible wp-content/uploads/optimole-logs/ directory without any access restriction. This makes it possible for unauthenticated attackers to download the logs and read their contents: attachment IDs, offload and rollback progress and error states, and error messages returned by the Optimole upload API.

## References

- https://wpsec.com/vuln/WPSEC-2026-4017/
- https://plugins.svn.wordpress.org/optimole-wp/tags/4.2.21/
- https://wordpress.org/plugins/optimole-wp/

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

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.
