Optimole: Stored XSS via missing_srcsets parameter (CVE-2026-120739)
The Optimole WordPress plugin up to version 4.2.18 is vulnerable to Stored Cross-Site Scripting (XSS) due to insufficient sanitization, allowing unauthenticated attackers to exploit a leaked HMAC signature and inject malicious scripts.
CVE search metadata
CVE search record: CVE-2026-120739. Severity: high. CVSS: 7.2. KEV: no. Product: Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization (<= 4.2.18). Brief: Optimole: Stored XSS via missing_srcsets parameter (CVE-2026-120739). Brief link: https://feed.craftedsignal.io/briefs/2026-11-optimole-xss-432d9959/
Triage facts
Revision 1- Applicability
- Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization (<= 4.2.18)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 7, 05:59 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
The Optimole plugin for WordPress, specifically versions 4.2.18 and earlier, contains a Stored Cross-Site Scripting (XSS) vulnerability. The flaw stems from insufficient input sanitization and output escaping within the 'missing_srcsets' parameter. Furthermore, the plugin unintentionally exposes a required HMAC signature in plaintext via the 'optimoleDataOptimizer' JavaScript object to any unauthenticated visitor on pages with an incomplete profile, rendering the REST API authentication mechanism ineffective.
Impact
Successful exploitation allows unauthenticated attackers to inject arbitrary web scripts into pages. These scripts execute in the context of the user viewing the affected page, which could lead to unauthorized actions, session hijacking, or credential theft if an administrator views the injected content.
Recommendation
- Upgrade the Optimole plugin to a version beyond 4.2.18 immediately to remediate the input sanitization flaw.
- Implement a Content Security Policy (CSP) to mitigate the impact of potential XSS attacks by restricting the execution of unauthorized inline scripts.
- Audit logs for suspicious REST API requests targeting the Optimole plugin endpoints, particularly those originating from unauthorized or anonymous user agents.
Immediate actions
Upgrade Optimole plugin to the latest version patched against CVE-2026-120739
Threat Hunt
Hunt for unauthorized access to REST API endpoints associated with the Optimole plugin
Data: Web server access logs