Junglewise Threat Intelligence

CVE-2026-11784: Optimole WordPress Plugin CSRF in replace_file function

CVE-2026-11784 · Severity: medium · CVSS 4.3 · Published 2026-06-18

Technologies: Optimole. Vendors: Optimole.

Executive brief

The Optimole plugin for WordPress, which is used to optimize images and improve website performance, contains a security flaw that could allow an attacker to replace existing website images with their own content. To exploit this, an attacker must trick a site administrator or author into clicking a malicious link while they are logged in. This could lead to unauthorized content changes or website defacement.

Technical details

The Optimole plugin for WordPress is vulnerable to Cross-Site Request Forgery (CSRF) in all versions up to and including 4.2.6 due to missing or incorrect nonce validation on the replace_file function. An unauthenticated attacker can exploit this by tricking a user with 'Author' level privileges or higher into clicking a crafted link. Upon execution, the forged multipart POST request can overwrite existing media attachments that the victim has permission to edit. The vulnerability is mitigated by a 'current_user_can' check, which limits the impact to attachments the logged-in victim is authorized to modify.

Affected products

  • Optimole Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization <= 4.2.6

Timeline

  • 2026-06-18: disclosed
  • 2026-06-18: advisory

References

Related threats