Optimole <= 4.2.20 - Unauthenticated Stored Cross-Site Scripting via Comment Content
Strategic Overview
- Status
- Patched in 4.2.21
- Affected Plugin
- Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization
- Affected Version
<= 4.2.20- CVSS
- 5.4Medium
- Weakness type
- CWE-79 · Improper Neutralization of Input During Web Page Generation
- CVE
CVE-2026-132618
At a glance
CVE-2026-132618 is a medium-severity Improper Neutralization of Input During Web Page Generation vulnerability in the Optimole WordPress plugin, affecting versions <= 4.2.20. It carries a CVSS score of 5.4 (reachable over the network). Exploitation requires no authentication. The issue is fixed in version 4.2.21; sites on affected versions should update now. Disclosed November 2026, reported by hoho087.
Vulnerability Overview
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.20 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. Successful exploitation requires that iframe lazy-loading is enabled (the default on new Optimole-connected installs), that the target post contains at least one iframe with fallback text, and that the attacker has had at least one prior comment approved so WordPress's default "Comment author must have a previously approved comment" setting auto-approves subsequent malicious comments.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no privileges on the target site, and no interaction from a victim user.
CWE-79: Improper Neutralization of Input During Web Page Generation
Optimole <= 4.2.20 carries this weakness at comment, and reaching it takes no account at all. Cross-site scripting happens when input from a request is written into a page without being escaped for the context it lands in, so the browser parses attacker-supplied text as markup or script.
Injected script runs with the privileges of whoever views the affected page, which is how these flaws turn into administrator session theft, silent account creation or persistent backdoors in page content. For Optimole the fix is 4.2.21: builds <= 4.2.20 are affected, anything from 4.2.21 onward is not.
Remediation
Update to version 4.2.21, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Optimole 4.2.21 closes this, and updating the plugin is the step that ends it.
- Firewall
- Login Security
- Alerts
External References
Related records
Same weakness class
- 7.2CVE-2026-125094: Optimole <= 4.2.19 Stored Cross-Site Scripting
CVE-2026-125094 - 7.2CVE-2026-120739: Optimole <= 4.2.18 Stored Cross-Site Scripting
CVE-2026-120739 - 7.2CVE-2026-120677: Optimole <= 4.2.18 Stored Cross-Site Scripting
CVE-2026-120677 - 7.2CVE-2026-119070: Optimole <= 4.2.17 Stored Cross-Site Scripting
CVE-2026-119070
Other vulnerabilities in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization
- 7.2CVE-2026-84829: Optimole <= 4.2.11 Stored Cross-Site Scripting
CVE-2026-84829 - 7.2CVE-2026-77365: Optimole <= 4.2.10 Stored Cross-Site Scripting
CVE-2026-77365 - 7.2CVE-2026-57673: Optimole Stored XSS
CVE-2026-57673 - 7.2CVE-2026-5217: Optimole <= 4.2.2 Stored Cross-Site Scripting
CVE-2026-5217 - 7.1CVE-2026-124969: Optimole PHP Object Injection
CVE-2026-124969 - 6.4CVE-2026-96531: Optimole 4.0.0 - 4.2.12 Stored Cross-Site Scripting
CVE-2026-96531 - 6.4CVE-2024-4636: Image Optimization by Optimole Stored XSS
CVE-2024-4636 - 6.1CVE-2026-5226: Optimole <= 4.2.3 Reflected Cross-Site Scripting
CVE-2026-5226
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C