Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain one prior approved comment
-
DeliverySubmit comment with scripted iframe-fallback payload
-
ExploitWordPress auto-approves and stores comment
-
ExecutionLazyload replacer renders payload into page
-
ImpactScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Stored cross-site scripting in the Optimole WordPress plugin versions 4.2.3 through 4.2.11 allows unauthenticated attack
Stored cross-site scripting in the Optimole WordPress plugin (versions 4.0.0 through 4.2.12) allows an authenticated use
Optimole WordPress plugin versions 4.0.0 through 4.2.15 expose the site's stored third-party image-optimization service
Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.
Stored Cross-Site Scripting in the Optimole image optimization plugin for WordPress (all versions through 4.2.10) allows
Stored cross-site scripting in the Optimole WordPress plugin through 4.2.18 lets unauthenticated attackers submit a craf
Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in
Unauthenticated stored XSS in Optimole WordPress plugin (≤4.2.2) allows attackers to inject malicious scripts via the sr
Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and in
Arbitrary file deletion in the Optimole WordPress plugin (all versions through 4.2.19) lets unauthenticated attackers de
Cross-Site Request Forgery (CSRF) vulnerability in Optimole Super Page Cache for Cloudflare allows Stored XSS.7.5. Rated
Stored/reflected Cross-Site Scripting in the Optimole WordPress image-optimization plugin (versions 4.2.7 and earlier) l
EUVD-2026-136544
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB