Skip to main content

Optimole EUVDEUVD-2026-118600

| CVE-2026-120739 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-07 Wordfence GHSA-crfc-xm73-w674
7.2
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Read plaintext HMAC from page JS
  2. Delivery
    Forge signed REST request
  3. Exploit
    Inject script via 's' parameter
  4. Execution
    Payload stored unsanitized
  5. Impact
    Script executes in visitor browsers

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the Optimole plugin (versions ≤ 4.2.18) to be installed and active, and crucially a page with an 'incomplete profile', because that condition causes the plugin to emit the HMAC signature in plaintext inside the inline optimoleDataOptimizer JavaScript object visible to unauthenticated visitors - this is the specific prerequisite that collapses the REST endpoint's authorization check. Given that HMAC exposure, the attack is remote and unauthenticated (CVSS PR:N) against default-configured installations in the incomplete-profile state. The limiting factors are: the site must be in that incomplete-profile condition for the signature to be exposed, and the impact is stored XSS (C:L/I:L, no availability impact), so realized harm depends on a user subsequently loading an injected page; the HMAC gating means a fully-configured profile may not expose the signature the same way, which bounds the exposure window.

Impact

This is a genuine priority within the WordPress plugin ecosystem, though not a drop-everything emergency. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, base 7.2) describes a network-reachable, low-complexity, unauthenticated stored XSS with scope change - consistent with the description's claim that the HMAC signature gating the REST endpoint is published in plaintext inside the inline optimoleDataOptimizer JavaScript object, effectively nullifying the authentication barrier. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with a serious-but-not-actively-exploited posture. No CISA KEV listing is present and no EPSS probability was supplied, so widespread automated exploitation is not evidenced; the provided references are the vendor advisory and source-code/patch links rather than a working exploit, so there is no confirmed public exploit code. The main signals agree (unauthenticated + stored + self-executing XSS = real risk), but the absence of EPSS and KEV data means the practical exploitation likelihood cannot be quantified from this input and should be treated as plausible rather than confirmed-in-the-wild.

Exploit ScenarioDerived

An unauthenticated attacker visits a site running Optimole with an incomplete profile, scrapes the plaintext HMAC signature from the inline optimoleDataOptimizer JavaScript object, and uses it to pass the REST endpoint authorization check. They then submit a crafted request whose 's' (missing_srcsets[*][*].s) parameter contains a malicious script, which is stored without sanitization and executed in the browser of any user who later loads an affected page. No working public exploit code is identified in the supplied data, though the vendor advisory and patch changeset are public.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 07, 2026

Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.2.18) lets remote attackers inject arbitrary JavaScript into pages via the missing_srcsets[*][*].s parameter, which is insufficiently sanitized and escaped. The REST endpoint that should gate this write normally requires an HMAC signature, but the plugin publishes that signature in plaintext inside the inline optimoleDataOptimizer JavaScript object to unauthenticated visitors whenever a page renders with an incomplete profile, so the effective authentication barrier is nonexistent (CVSS 3.1: 7.2, AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N). Impact is limited to stored script execution in the browsers of users who later load an injected page, with no availability impact; no public exploit code has been identified at time of analysis, and the vulnerability is not in CISA KEV. Priority is rated this_week: significant within the WordPress plugin ecosystem, but not a drop-everything emergency given the incomplete-profile prerequisite and the limited C/I impact.

RemediationAI

Upgrade the Optimole plugin past version 4.2.18 to a release that contains the fix; the advisory references a WordPress.org plugin changeset (https://plugins.trac.wordpress.org/changeset?reponame=&old=3784828%40optimole-wp&new=3784828%40optimole-wp), which indicates an upstream fix is available, but a specific patched release number is not independently confirmed in the supplied data, so verify the current plugin version in the WordPress.org directory before or after updating and confirm the changeset is included. Until a patched build is deployed, the most direct compensating control is to complete the Optimole onboarding/profile configuration so the plugin stops emitting the HMAC signature in the optimoleDataOptimizer inline object to unauthenticated visitors - the trade-off is that this only removes the signature exposure path and does not repair the underlying sanitization defect, so any other route to the endpoint remains a risk, and it also commits the site to full Optimole configuration. Where image optimization is not essential, deactivating and removing the plugin eliminates the attack surface entirely, at the cost of losing CDN, lazy-load and WebP/AVIF conversion features. Restricting access to the plugin's REST routes (for example by blocking unauthenticated requests to the optimole REST namespace at the reverse proxy or WAF) reduces exposure but can break legitimate front-end optimization behavior, so test before enforcing. Consult the Wordfence advisory for the vendor's remediation guidance and monitor for the patched version.

Affected VersionsENISA

Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization 0 ≤4.2.18

Affected Packages

euvd optimole_optimize_images_convert_webp_avif_cdn_lazy_load_image_optimization no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-79 stored cross-site scripting defect in the Optimole plugin's image tag rewriting pipeline. Image markup is processed in inc/tag_replacer.php (notably around lines 312 and 529) and managed through inc/manager.php, where the missing_srcsets array - including its nested [*][*].s element - is written into rendered output without adequate sanitization or output escaping. The write path runs through the plugin's REST endpoint in inc/rest.php (lines 102 and 159), which is protected by an HMAC signature check. The critical weakness is key management rather than the endpoint logic itself: when the site's Optimole profile is incomplete, the plugin emits the required HMAC signature in plaintext inside the inline optimoleDataOptimizer JavaScript object on ordinary front-end pages, so any unauthenticated visitor can read the secret that the authorization check relies on. With that signature in hand, the authorization requirement collapses and the sanitization gap becomes remotely exploitable without credentials or user interaction during injection (CVSS PR:N/UI:N). The vector's Scope:Changed rating reflects that injected script executes in the context of the WordPress site's pages rather than staying confined to the vulnerable component. The trigger for the escaping failure is described in the available sources only in terms of missing sanitization and escaping on the missing_srcsets parameter; the exact code path from REST request to rendered page is not fully detailed in the supplied evidence. Exploitation is bounded by the incomplete-profile condition - a fully configured profile may not emit the signature in the same way, which limits the exposure window and means affected sites are not uniformly reachable.

Know when Optimole gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 7.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 7.2 HIGH

Unauthenticated (PR:N) because the HMAC is published to anonymous visitors; network vector, low complexity, scope change as injected script executes in users' browsers, limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity stored cross-site scripting vulnerability in the Optimole WordPress plugin (up to version 4.2.18) allows unauthenticated attackers to inject malicious JavaScript into pages viewed by site visitors. This compromises visitor trust and can lead to session hijacking, data theft, or malware distribution, affecting any organization using the plugin on customer-facing websites. Leadership should prioritize remediation to protect brand reputation and user data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling the Optimole plugin, implementing WAF rules to block malicious payloads targeting the missing_srcsets parameter, and restricting access to the REST endpoint.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Medium
popular WordPress image-optimization plugin, widely but not universally deployed
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Related Vulnerabilities in Optimole Plugin Stored XSS Flaws

View all 3
CVE-2026-84829 HIGH POC
8.8 Sep 16

Stored cross-site scripting in the Optimole WordPress plugin versions 4.2.3 through 4.2.11 allows unauthenticated attack

CVE-2026-96531 MEDIUM POC
6.8 Sep 26

Stored cross-site scripting in the Optimole WordPress plugin (versions 4.0.0 through 4.2.12) allows an authenticated use

CVE-2026-96530 MEDIUM POC
6.5 Oct 07

Optimole WordPress plugin versions 4.0.0 through 4.2.15 expose the site's stored third-party image-optimization service

CVE-2026-77365 HIGH
7.2 Aug 28

Stored Cross-Site Scripting in the Optimole image optimization plugin for WordPress (all versions through 4.2.10) allows

CVE-2026-5217 HIGH
7.2 Apr 11

Unauthenticated stored XSS in Optimole WordPress plugin (≤4.2.2) allows attackers to inject malicious scripts via the sr

CVE-2026-125094 HIGH
7.2 Nov 20

Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in

CVE-2026-124969 HIGH
7.1 Nov 14

Arbitrary file deletion in the Optimole WordPress plugin (all versions through 4.2.19) lets unauthenticated attackers de

CVE-2024-27968 HIGH
7.1 Mar 21

Cross-Site Request Forgery (CSRF) vulnerability in Optimole Super Page Cache for Cloudflare allows Stored XSS.7.5. Rated

CVE-2026-57673 HIGH
7.1 Jul 02

Stored/reflected Cross-Site Scripting in the Optimole WordPress image-optimization plugin (versions 4.2.7 and earlier) l

CVE-2026-102375 MEDIUM
6.5 Sep 30

Exposure of restricted data in Optimole 4.2.14 and earlier lets authenticated WordPress Subscriber-level users read info

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy