CSRF in Optimole – Optimize Images | Convert Webp & Avif Cdn Lazy Load Image Optimization
CVE-2026-11784
The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 4.2.6. This is due to missing or incorrect nonce validation on the replace_file function. This makes it possible for unauthenticated attackers to overwrite existing media attachments with attacker-supplied file content by supplying a forged multipart POST request targeting any attachment the victim has edit_post capability over via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. The forged request requires a victim with at least Author-level privileges, as the handler enforces a current_user_can('edit_post', $id) check; tricking an Author-level or higher user into clicking a crafted link is sufficient to trigger the overwrite against attachments that user can edit.
Vulnerability class: CSRF (Cross-Site Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 13.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- AlexMihailEngineer/CVE-2026-11784-Optimole-CSRF (last pushed 2026-06-19)
References
- www.wordfence.com/threat-intel/vulnerabilities/id/8a90de6e-6bd5-43b6-980d-84d25…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.6/inc/media_rename/atta…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.6/inc/media_rename/atta…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.5/inc/media_rename/atta…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.5/inc/media_rename/atta…
- plugins.trac.wordpress.org/changeset
This CVE has public exploit evidence. See the latest CVEs with public exploits.