CVE-2026-120739

Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Page Profiler srcset Descriptor

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 's (missing_srcsets[*][*].s)' 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. The HMAC signature required to pass the REST endpoint's authorization check is published in plaintext to unauthenticated visitors inside the inline optimoleDataOptimizer JavaScript object on any page with an incomplete profile, making the effective authentication barrier nonexistent.

Analysis

AI-generated

Technical impact

The vulnerability allows an unauthenticated attacker to store malicious JavaScript in the plugin’s page profiler srcset data. Because the parameter is not sanitized or escaped, the stored code executes in the browser of any visitor who loads the affected page, leading to injection of arbitrary client‑side scripts and potential credential theft or defacement. The flaw is rooted in improper input handling (CWE‑79).

Affected Systems

The flaw affects WordPress sites that have the Optimole plugin installed with a version of 4.2.18 or earlier. The plugin provides image optimization, WebP and AVIF conversion, CDN delivery, lazy loading and page profiling. Any environment using the plugin prior to the fixed release is vulnerable.

Risk and Exploitability

With a base CVSS score of 7.2, the vulnerability is moderately high in severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, but the lack of authentication on the REST endpoint and the public exposure of the HMAC signature remove any practical barrier for attackers. An attacker can exploit the flaw by inserting malicious srcset descriptors that persist in the profile and are served to all users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Optimole plugin to the latest version (≥ 4.2.19) that removes the unsanitized srcset parameter from the page profiler.
  • If upgrading is not possible, remove the plugin entirely or disable the page profiler feature to eliminate exposure of incomplete profile data and the HMAC signature.
  • As a temporary countermeasure, block unauthenticated access to the REST endpoint (optimole/wp/v1) via a web‑application firewall or host configuration to prevent the injection of malicious descriptors.

Generated by OpenCVE AI on November 7, 2026 at 04:21 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 's (missing_srcsets[*][*].s)' 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. The HMAC signature required to pass the REST endpoint's authorization check is published in plaintext to unauthenticated visitors inside the inline optimoleDataOptimizer JavaScript object on any page with an incomplete profile, making the effective authentication barrier nonexistent.
Title Optimole <= 4.2.18 - Unauthenticated Stored Cross-Site Scripting via Page Profiler srcset Descriptor
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, 8:39 PM
Status
Deferred
Published
Nov 7, 2026, 4:17 AM
Modified
Nov 7, 2026, 6:17 PM