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.
Published: 2026-11-07
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Sat, 07 Nov 2026 03:45:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-11-07T03:28:05.491Z

Reserved: 2026-11-02T20:39:19.305Z

Link: CVE-2026-120739

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-07T04:17:13.697

Modified: 2026-11-07T04:17:13.830

Link: CVE-2026-120739

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-07T04:30:13Z

Weaknesses
  • CWE-79

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