CVE-2026-120677: Optimole Optimize Images plugin stored cross-site scripting in comments

CVE-2026-120677 · Severity: high · CVSS 7.2 · Published 2026-11-07

Optimole is a WordPress plugin that optimizes images and manages content delivery across websites. An unauthenticated attacker can inject malicious scripts through post comments that execute when site visitors view the affected post, potentially stealing sensitive data or performing actions on behalf of users. The attack requires a site administrator to approve the malicious comment and the post must contain video elements with lazy loading enabled (the default setting).

Vendors: Optimole.

Quick answers

Is CVE-2026-120677 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-120677 being exploited in the wild.
How severe is CVE-2026-120677?
High severity, with a CVSS score of 7.2, published 7 November 2026.
Which products and versions are affected?
Optimole Optimize Images plugin up to and including 4.2.18.
Is there a fix for CVE-2026-120677?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-120677 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-120677?
Check whether you run Optimole Optimize Images plugin at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The plugin fails to properly sanitize and escape the 'comment' parameter, allowing stored cross-site scripting (XSS) injection. An unauthenticated attacker can inject arbitrary JavaScript that persists in approved comments and executes in the browser of users viewing posts containing iframe or video elements with lazy loading enabled. Exploitation is conditional on administrator comment moderation and presence of video blocks.

Affected products

  • Optimole Optimize Images plugin up to and including 4.2.18

Timeline

  • 2026-11-07: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.