Skip to main content

Optimole CVE-2026-132618

| EUVDEUVD-2026-136544 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 Wordfence
5.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Obtain one prior approved comment
  2. Delivery
    Submit comment with scripted iframe-fallback payload
  3. Exploit
    WordPress auto-approves and stores comment
  4. Execution
    Lazyload replacer renders payload into page
  5. Impact
    Script executes in visitor's browser

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 a specific stack of conditions, all drawn from the description: (1) the plugin's iframe lazy-loading feature must be enabled - this is the default on new Optimole-connected installs but may be off on upgraded or reconfigured sites; (2) the targeted post must contain at least one iframe that has fallback text (the injection sink in lazyload_replacer.php); and (3) the attacker must already have had at least one comment approved on the site, so that WordPress's default 'comment author must have a previously approved comment' setting auto-approves the subsequent malicious comment. These requirements are the concrete reason for the CVSS AC:H rating. Limiting factors for defenders: sites that moderate all comments manually, that disable Optimole iframe lazy-loading, or whose target posts contain no iframe-with-fallback are not exploitable; an attacker with no prior approved comment must first get one past moderation.

Impact

This is a moderate-severity stored XSS (CVSS 5.4, CWE-79) reported by Wordfence with a vuln.today priority of 'this_month' - not an emergency. The supplied CVSS vector (AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N) shows a network-reachable, nominally unauthenticated flaw, but the AC:H rating and the description agree that exploitation is gated by several stacked preconditions, which materially lowers real-world risk below what a raw 'unauthenticated network' reading would suggest. No EPSS score, no CISA KEV listing, and no SSVC decision record were provided, and the references are Wordfence's advisory plus plugin source-code (trac) lines rather than a working exploit, so exploitation status is 'no public exploit identified at time of analysis.' Signals are internally consistent (high complexity, limited confidentiality/integrity impact, no availability impact) and point to a genuine but low-urgency, hard-to-weaponize bug rather than a mass-exploitation priority. Missing data to note explicitly: EPSS probability is absent, KEV status is absent (treat as not-exploited, not as confirmation of safety), and the fixed version is inferred from a trac tag reference (4.2.21) rather than an explicit vendor 'fixed in' statement.

Exploit ScenarioDerived

An attacker who has previously had a benign comment approved on a target WordPress site submits a new comment containing a malicious payload; because WordPress's default 'comment author must have a previously approved comment' setting auto-approves it, the payload is stored. When the plugin's iframe lazy-loading rewrites an iframe's fallback text on a post, the stored script is rendered and executes in the browser of any visitor who views that page. No working public exploit code was identified; the references are the Wordfence advisory and plugin source lines, not a verified PoC.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.2.20) lets remote attackers inject script through the 'comment' parameter, which is later written into lazily-loaded iframe markup without adequate sanitization or escaping, so the payload executes for any visitor viewing the affected page. The CVSS vector rates it 5.4 with AC:H and PR:N, and the high attack complexity reflects a stack of prerequisites: iframe lazy-loading must be active (default on newly connected installs), the target post must contain an iframe with fallback text, and the attacker must already have one approved comment so WordPress auto-approves the malicious follow-up. Wordfence reports it with a 'this_month' priority rather than emergency handling, and no public exploit code or CISA KEV entry is associated with it at time of analysis.

RemediationAI

Upgrade the Optimole plugin to version 4.2.21, the tag referenced as the fixed release at https://plugins.trac.wordpress.org/browser/optimole-wp/#tags/4.2.21, and confirm the update in the WordPress admin after backing up the database, since the payload is stored in comment content and may need separate cleanup. If immediate updating is not possible, the most direct compensating control is to disable Optimole's iframe lazy-loading, which removes the vulnerable markup-replacement sink at the cost of losing lazy-load performance for iframes; alternatively, turn off the 'Comment author must have a previously approved comment' setting or switch to full manual moderation so that no attacker comment is auto-approved, accepting a higher moderation workload. Sites that can restrict commenting on posts containing iframes (or disable comments entirely on those posts) also close the injection path, and administrators should review existing comments on iframe-bearing posts for injected script payloads and remove any found. Vendor guidance should be tracked via the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/50f5422b-aaa0-4ffa-8e3c-0eb4c2cde1d9?source=cve; with a 'this_month' priority rating and no confirmed active exploitation, scheduling the upgrade within the current patch cycle is consistent with the assessed risk.

Affected VersionsENISA

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

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 issue in the Optimole WordPress plugin's lazy-load pipeline. According to the referenced source files (inc/lazyload_replacer.php around lines 377 and 396, plus inc/manager.php around line 557 in tag 4.2.20), the plugin rewrites iframe markup to defer loading and re-emits supplied fallback text into the page without sufficient input sanitization and output escaping, so attacker-controlled content that reaches that sink is rendered as HTML/script rather than inert text. Because WordPress comment data flows into this rendering path, the 'comment' parameter becomes the injection vector, and the payload persists in the site's content until removed. The CVSS scope-change flag (S:C) reflects that the resulting script runs in the context of the WordPress site and its visitors rather than being contained within the plugin's own trust boundary; the AC:H rating is a direct consequence of the multi-condition trigger chain documented in the description and the independent assessment rather than of any timing or memory-corruption behavior. Defenders should note the trigger is conditional - iframe lazy-loading enabled, a post containing an iframe with fallback text, and prior comment approval - so not every Optimole installation exposes a reachable sink.

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 5.4 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Unauthenticated (PR:N) network stored XSS, but the stacked preconditions (lazyload enabled, iframe-with-fallback, prior approved comment) justify AC:H; scope changes to the victim browser (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/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
High
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 'comment' parameter in all versions up to, and including, 4.2.20 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. Successful exploitation requires that iframe lazy-loading is enabled (the default on new Optimole-connected installs), that the target post contains at least one iframe with fallback text, and that the attacker has had at least one prior comment approved so WordPress's default "Comment author must have a previously approved comment" setting auto-approves subsequent malicious comments.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
popular WordPress image-optimization plugin, common but not universally deployed
Social Media
1
Sightings
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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.

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-120739 HIGH
7.2 Nov 07

Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.

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-120677 HIGH
7.2 Nov 07

Stored cross-site scripting in the Optimole WordPress plugin through 4.2.18 lets unauthenticated attackers submit a craf

CVE-2026-119070 HIGH
7.2 Nov 07

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

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

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