Plugin security / Optimole

Optimole vulnerability: is your WooCommerce store affected?

Optimole has 9 serious security holes rated 7 or higher out of 10 that someone can use with no login or with only a customer account. The newest was published on 19 November 2026. Every one is fixed: update to 4.2.20 or newer.

Short answer: your store is affected if it runs Optimole older than 4.2.20. Update to 4.2.20 or newer, on a copy of the store first if you can.

7 of the 10,463 WooCommerce stores we have looked at load Optimole on their home page.

The security holes

Newest first. Each one is published in a public security database and fixed in the version shown.

  1. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.2 (high)no login neededAffected: older than 4.2.20Fixed in 4.2.20Published 19 November 2026CVE-2026-125094

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and...

  2. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.2 (high)no login neededAffected: older than 4.2.18Fixed in 4.2.18Published 6 November 2026CVE-2026-119070

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and...

  3. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.2 (high)no login neededAffected: older than 4.2.19Fixed in 4.2.19Published 6 November 2026CVE-2026-120677

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and...

  4. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.2 (high)no login neededAffected: older than 4.2.19Fixed in 4.2.19Published 6 November 2026CVE-2026-120739

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 's (missing_srcsets[*][*].s)' parameter in all...

  5. Deletion

    Someone could delete content or files, which can take the store down.

    Score 7.1 (high)no login neededAffected: older than 4.2.20Fixed in 4.2.20Published 6 November 2026CVE-2026-124969

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the...

  6. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 8.8 (high)no login neededAffected: older than 4.2.12Fixed in 4.2.12Published 27 August 2026CVE-2026-84829

    Advisory: The Optimole WordPress plugin before 4.2.12 does not properly escape a user supplied value before using it to build an image tag attribute, allowing unauthenticated users to inject arbitrary attributes into pages...

  7. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.2 (high)no login neededAffected: older than 4.2.11Fixed in 4.2.11Published 27 August 2026CVE-2026-77365

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'a' (above_fold_images) parameter in all versions...

  8. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.1 (high)no login neededAffected: older than 4.2.8Fixed in 4.2.8Published 17 June 2026CVE-2026-57673

    Advisory: Unauthenticated Cross Site Scripting (XSS) in Optimole <= 4.2.7 versions.

  9. Cross-site scripting

    Someone could plant a script that runs in your visitors' or your admins' browsers.

    Score 7.2 (high)no login neededAffected: older than 4.2.3Fixed in 4.2.3Published 10 April 2026CVE-2026-5217

    Advisory: The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 4.2.2.

How to check your version

  1. Log in to WordPress and open Plugins > Installed Plugins.
  2. Find Optimole. The version number is under its name. If it is lower than 4.2.20, your store is affected.
  3. No login to hand? Open https://yourstore.com/wp-content/plugins/optimole-wp/readme.txt in a browser, with your own address in place of yourstore.com, and read the Stable tag line. Some hosts block this file; then use step 1.

How to fix it

  1. Make a backup, or better, a staging copy of the store (most hosts have a one-click staging button).
  2. On the copy, update Optimole to 4.2.20 or newer: Dashboard > Updates, or Update now on the Plugins page.
  3. If no update shows, it may be a paid version whose licence has run out: download the new version from the seller's site and upload it.
  4. Place a test order on the copy: add to cart, check out, pay with a test method. Check the pages that use Optimole.
  5. If everything works, make the same update on the live store and place one more test order.
  6. If you no longer use Optimole, delete it instead of leaving it deactivated.

Not sure, or no time?

Get a free check of your store: we look at its public pages for plugins with known holes, and reply within one working day. Or we fix it for you: we update your store on a copy, place a test order, and only then change the live store, for a fixed price.

Free store check Fix it for me on a copy

Questions

Which Optimole version fixes it?
Version 4.2.20 or newer fixes all 9 issues on this page.
How do I know if my store is affected?
Your store is affected if it runs Optimole older than 4.2.20. In WordPress, open Plugins and read the version under Optimole. Without logging in, open yourstore.com/wp-content/plugins/optimole-wp/readme.txt and read the Stable tag line.
I don't use Optimole any more. Is a deactivated copy safe?
Deactivating it lowers the risk but leaves the old code on your server. If you don't use it, delete it; if you do, update it.
Can someone fix it for me?
Yes. We update the store on a copy first, place a test order, and only then make the same change on the live store, for a fixed price.

Vulnerability data: WPVulnerability (wpvulnerability.net, CC0), which links each entry to its CVE or advisory. Store numbers: Tadrik's own checks of public pages, aggregates only. Page updated 28 November 2026.