# Optimole <= 4.2.20 - Missing Authorization to Authenticated (Subscriber+) Log Disclosure via optml_fetch_logs AJAX Action

- **ID:** WPSEC-2026-4018
- **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 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-862
- **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-4018/

## Description

The Optimole plugin for WordPress is vulnerable to unauthorized access of data via the optml_fetch_logs AJAX action in versions 3.11.0 up to, and including, 4.2.20, due to a missing capability check on the fetch_logs_ajax_handler function. The handler only verifies a 'wp_rest' nonce, which any logged-in user can obtain. This makes it possible for authenticated attackers, with Subscriber-level access and above, to read the plugin's media offload and rollback logs.

## References

- https://wpsec.com/vuln/WPSEC-2026-4018/
- 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-4018/

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.
