# Optimole <= 4.2.20 - Improper Certificate Validation in Optimole API Requests

- **ID:** WPSEC-2026-4019
- **Plugin:** Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization (`optimole-wp`), https://wordpress.org/plugins/optimole-wp/
- **Affected versions:** all versions before 4.2.21
- **Fixed in:** 4.2.21 (Update to 4.2.21 or later.)
- **Severity:** Medium 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-295
- **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-4019/

## Description

The Optimole plugin for WordPress is vulnerable to Improper Certificate Validation in all versions up to, and including, 4.2.20 due to TLS certificate verification being disabled (sslverify set to false) on remote requests to the Optimole API, onboarding and error reporting endpoints. This makes it possible for attackers in a privileged network position to perform man-in-the-middle attacks, intercepting the API key and other data sent to the service or tampering with the responses.

## References

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

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.
