Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted comment via 'comment' parameter
-
DeliveryAdmin approves malicious comment
-
ExploitPayload stored on post with iframe/video
-
ExecutionUser views injected page
-
ImpactScript executes in victim 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 | Three concrete conditions must all hold: (1) an unauthenticated attacker submits the payload through the 'comment' parameter; (2) an administrator must manually approve that comment before it is published; and (3) the affected post must contain at least one iframe or video element (e.g., a core WordPress Video block), which triggers Optimole's lazy-load replacement path. The description notes this is satisfied under default plugin settings because video lazy loading is enabled by default. The limiting factors are therefore the mandatory administrator approval step and the requirement that the target post contain an iframe/video element - without both, the stored payload does not execute. |
| Impact | This is a stored XSS (CWE-79) in the Optimole WordPress plugin with an input CVSS of 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N). The network vector and PR:N correctly reflect that the initial injection vector - submitting a comment - is reachable by unauthenticated attackers, and S:C reflects script execution in other users' browser context. However, the CVSS AC:L understates the real preconditions: the description states exploitation requires an administrator to approve the malicious comment AND the target post to contain at least one iframe or video element. These are meaningful gating factors that the base vector does not capture, so the practical likelihood is lower than 7.2 alone suggests. No EPSS score was provided and the vulnerability is NOT in CISA KEV; no SSVC technical-impact/automatable breakdown was supplied beyond the vendor-style 'this_week' priority label from vuln.today. There is no POC/Exploit confirmation in the input (references are the Wordfence advisory and WordPress trac source lines, not verified working exploit code), so exploitation status is: no public exploit identified at time of analysis. Net: a legitimate same-week patching priority given unauthenticated reachability and the default-enabled video lazy-load condition, but not an emergency - the admin-approval requirement makes mass, hands-off exploitation unlikely, pointing toward a conditional rather than widespread threat. |
| Exploit ScenarioDerived | An unauthenticated attacker submits a blog comment containing a crafted payload in the 'comment' parameter on a post that includes a video or iframe block. Once an administrator approves the comment and any user views that post, the plugin's lazy-load replacement logic renders the unsanitized content and the injected script executes in the visitor's browser. No public, verified exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 07, 2026
Stored cross-site scripting in the Optimole WordPress plugin through 4.2.18 lets unauthenticated attackers submit a crafted 'comment' value that executes in visitors' browsers once an administrator approves the comment and the affected post contains an iframe or video element. The plugin's default video lazy loading makes that second condition easier to satisfy, but administrator approval remains a required step. The independent assessment rates the issue with AC:H rather than the input AC:L because both prerequisites must hold; vuln.today assigns this_week priority, and no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: 4.2.19. Upgrade Optimole to 4.2.19 or later, using the plugin tag referenced at https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19 and the vendor advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/e71028cd-18bc-4b16-a376-db34b7212206?source=cve. Versions through 4.2.18 remain vulnerable. If immediate upgrade is not possible, reduce exposure by addressing the documented exploit prerequisites: disable video lazy loading, avoid iframe or video elements on posts that accept comments, and tightly control administrator comment approval; these are compensating measures with the trade-off of changing legitimate media behavior or comment workflows and do not replace the vendor fix.
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 CWE-79 stored cross-site scripting in the Optimole - Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization WordPress plugin. The supplied CPE identifies the Optimole plugin, and the referenced code paths are inc/manager.php and inc/lazyload_replacer.php in the 4.2.17 tag, with the 4.2.19 tag referenced as the fixed release. Insufficient sanitization of the 'comment' parameter and insufficient output escaping allow script content to be stored and later rendered. Execution depends on the comment being approved by an administrator and on the affected post containing at least one iframe or video element, which reaches Optimole's lazy-load replacement path; video lazy loading is enabled by default, so the iframe/video condition is commonly met. The independent assessment keeps PR:N and UI:N but changes AC:L to AC:H to reflect the mandatory approval step and the iframe/video element requirement.
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:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Unauthenticated injection keeps PR:N, but mandatory admin approval plus a required iframe/video element on the post are attacker-uncontrolled preconditions, so AC:H; XSS in victim context gives S:C and C:L/I:L.
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.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. Exploitation requires the comment to be approved by an administrator and for the affected post to contain at least one iframe or video element (e.g., a core Video block), which is sufficient under default plugin settings where video lazy loading is enabled.
Executive ViewAI
CVE-2026-120677 is a high-severity stored cross-site scripting flaw in the Optimole WordPress plugin (versions through 4.2.18) that allows an unauthenticated attacker to inject malicious code via a comment, which then executes in visitors' browsers after an administrator approves the comment and the post contains an iframe or video element. This puts site visitors at risk of session hijacking or data theft, and could harm the organization's reputation and customer trust. Leadership should prioritize remediation because the plugin is widely used and the attack requires only user interaction, not authentication.
No vendor-released patch identified at time of analysis; interim mitigations include disabling or removing the Optimole plugin, restricting comment approval to trusted users, auditing existing comments for malicious content, and deploying WAF rules to filter XSS attempts.
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.
Related Vulnerabilities in Optimole Plugin Stored XSS Flaws
View all 3Stored 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 through 4.2.10) allows
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
Exposure of restricted data in Optimole 4.2.14 and earlier lets authenticated WordPress Subscriber-level users read info
EUVD-2026-118603
GHSA-f2h3-jjvx-q22f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB