Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization <= 4.2.6 - Cross-Site Request Forgery via 'optml_replace_file' AJAX Action

4.3
Cross-Site Request Forgery (CSRF)
CVE CVE-2026-11784
CVSS 4.3 (Medium)
Publicly Published June 17, 2026
Last Updated June 18, 2026
Researcher Alexandru Bucur

Description

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.

References

Share

Vulnerability Details for Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

Software Type Plugin
Software Slug optimole-wp (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.2.7, or a newer patched version
Affected Version
  • <= 4.2.6
Patched Version
  • 4.2.7

Recent vulnerabilities in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

# Title CVE ID CVSS Researchers Date
1 Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization <= 4.2.7 - Unauthenticated Stored Cross-Site Scripting CVE-2026-57673 7.2 daroo June 30, 2026
2 Optimole <= 4.2.2 - Unauthenticated Stored Cross-Site Scripting via Srcset Descriptor Parameter CVE-2026-5217 7.2 Quốc Huy (jtwings) April 10, 2026
3 Optimole <= 4.2.3 - Reflected Cross-Site Scripting via Page Profiler URL CVE-2026-5226 6.1 Ali Cem Havare, Sencer Kılıç, Cesi De Taranto April 10, 2026
4 Image optimization service by Optimole <= 4.1.0 - Insecure Direct Object Reference to Authenticated (Author+) Media Offload CVE-2025-11519 4.3 Dmitrii Ignatyev October 17, 2025
5 Image Optimization by Optimole – Lazy Load, CDN, Convert WebP & AVIF <= 3.12.10 - Authenticated (Author+) Stored Cross-Site Scripting via SVG Upload CVE-2024-4636 6.4 wesley (wcraft) May 14, 2024
6 ThemeIsle SDK <= Various Versions - Missing Authorization CVE-2024-1047 5.3 Francesco Carlucci February 1, 2024
7 Image optimization & Lazy Load <= 3.3.1 - Admin+ Stored Cross-Site Scripting CVE-2022-0969 4.8 Kévin Mosbahi (Mika) March 21, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation