Optimole WordPress plugin: Stored Cross-Site Scripting (CVE-2026-119070)
The Optimole WordPress plugin is vulnerable to stored Cross-Site Scripting via the comment parameter, allowing unauthenticated attackers to execute arbitrary scripts due to improper output encoding during rendering.
CVE search metadata
CVE search record: CVE-2026-119070. Severity: high. CVSS: 7.2. KEV: no. Product: Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization (<= 4.2.17). Brief: Optimole WordPress plugin: Stored Cross-Site Scripting (CVE-2026-119070). Brief link: https://feed.craftedsignal.io/briefs/2026-11-optimole-xss/
Triage facts
Revision 1- Applicability
- Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization (<= 4.2.17)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 7, 05:58 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
The Optimole - Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) via the 'comment' parameter in all versions up to, and including, 4.2.17. The vulnerability exists because the plugin fails to sanitize input and improperly handles output escaping.
The exploit bypasses standard WordPress comment filters by storing payloads that do not contain HTML metacharacters at the time of entry; the characters are instead generated by the plugin's own decoder during rendering. Successful exploitation requires the plugin to be configured with a valid CDN key/secret and the image replacer enabled, which is the default configuration post-setup.
Impact
Successful exploitation allows unauthenticated attackers to inject arbitrary web scripts into pages. These scripts execute in the context of any user who accesses an injected page, potentially leading to session hijacking, unauthorized actions, or further compromise of the victim's session.
Recommendation
- Update the Optimole plugin to the latest version beyond 4.2.17 once a patch is available.
- Review plugin configuration settings to ensure unnecessary features such as 'image replacer' are disabled if not required for site functionality.
- Implement a Content Security Policy (CSP) to mitigate the impact of XSS vulnerabilities by restricting the execution of unauthorized scripts.
- Audit WordPress comment sections for anomalous script content if the site is suspected of being targeted.
Immediate actions
Inventory all WordPress installations and identify versions of the Optimole plugin currently in use.
Threat Hunt
Inspect WordPress comment database tables for entries containing suspicious JavaScript syntax or non-standard characters that might trigger decoding issues.
Data: WordPress database comments table
Mitigations
Disable the Optimole image replacer functionality if an immediate update is not available.
CVE-2026-119070