CVE-2026-120677

Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Comment Content

Published Nov 7, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
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 including, 4.2.18 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the comment to be approved by an administrator and for the affected post to contain at least one iframe or video element (e.g., a core Video block), which is sufficient under default plugin settings where video lazy loading is enabled.

Analysis

AI-generated

Technical impact

The Optimole plugin for WordPress contains a stored cross‑site scripting flaw in the processing of the 'comment' field. Unauthenticated users can submit a comment that, after administrator approval, is stored with unsanitized content. When a post containing at least one iframe or video element is viewed, the injected scripts execute in the attacker’s browser context. The flaw arises from insufficient input sanitization and output escaping on the comment content.

Affected Systems

WordPress sites that use the Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin in any release up to and including version 4.2.18 are impacted. All users who view posts containing an iframe or video block in an affected installation are at risk if a comment has been approved by an administrator.

Risk and Exploitability

The vulnerability has a CVSS score of 7.2, indicating high severity. No EPSS data is available, and the issue is not listed in CISA KEV. Exploitation requires an administrator to approve the malicious comment and for the affected post to include an iframe or video element, conditions that are common in many WordPress sites using the default lazy‑loading setting.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Optimole plugin to version 4.2.19 or later, which contains the fix for the XSS vulnerability.
  • Temporarily remove iframe or video elements from affected posts or disable the plugin’s lazy‑loading feature until a patch is applied, reducing the execution surface of the stored comment data.
  • Implement a strict Content Security Policy that blocks inline script execution on the site, mitigating the impact of any remaining stored scripts.

Generated by OpenCVE AI on November 7, 2026 at 04:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Optimole
Optimole optimole
Wordpress-extensions
Wordpress-extensions optimole
Vendors & Products Optimole
Optimole optimole
Wordpress-extensions
Wordpress-extensions optimole
Type Values Removed Values Added
Description 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 including, 4.2.18 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the comment to be approved by an administrator and for the affected post to contain at least one iframe or video element (e.g., a core Video block), which is sufficient under default plugin settings where video lazy loading is enabled.
Title Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Comment Content
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 7, 2026, 6:06 PM
Reserved
Nov 2, 2026, 7:06 PM
Status
Deferred
Published
Nov 7, 2026, 4:17 AM
Modified
Nov 7, 2026, 6:17 PM