Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted comment via 'comment' parameter
-
DeliveryPayload stored unsanitized in post comments
-
ExploitAMP renders page in Transitional/Standard mode
-
ExecutionScript executes in visitor's browser
-
ImpactHijack session or redirect victim
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 three concrete conditions to hold on the target site: (1) the separate AMP plugin must be installed and active in Transitional or Standard template mode; (2) comments must be open on the targeted post, which is the WordPress default; and (3) the attacker injects via the 'comment' parameter with no authentication (PR:N). The limiting factor is condition (1): the AMP plugin dependency in those specific modes is non-default and environment-specific, so sites running Optimole without AMP, or with AMP in Reader mode, are not exploitable. Impact is also bounded to low confidentiality/integrity in the victim's browser context (C:L/I:L/A:N). |
| Impact | Signals are moderate and internally consistent rather than alarming. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, base 7.2 HIGH) describes a network-reachable, unauthenticated stored XSS with scope change, which on its face sounds high-priority. However, the description adds material constraints that the base vector does not fully capture: exploitation requires the separate AMP plugin to be active in Transitional or Standard template mode, and comments must be open on the target post. Comments-open is the WordPress default, but AMP running in those specific modes is a non-default, environment-dependent precondition outside the attacker's control, which realistically raises attack complexity above the AC:L assigned by the reporter. No EPSS score, no CISA KEV listing, and no confirmed public exploit are present in the input, and the vuln.today decision label is 'this_week' rather than act_now/emergency - all pointing to a patch-this-week remediation item, not an active-exploitation fire drill. Net: a genuine, remotely reachable stored-XSS flaw worth patching promptly, but its real-world exploitability is gated by the AMP co-requisite, so it is lower priority than an unconditional unauthenticated XSS on a default install. |
| Exploit ScenarioDerived | An unauthenticated attacker submits a blog comment containing a malicious script through the 'comment' parameter on a post that has comments open. Because the Optimole plugin insufficiently sanitizes and escapes that value and the AMP plugin (in Transitional or Standard mode) renders it, the injected script executes in the browser of any user who later views the page, enabling session/cookie theft or redirection. No public exploit was identified at time of analysis; the only references are the Wordfence advisory and plugin source lines. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Stored cross-site scripting in the Optimole image optimization plugin for WordPress, affecting all versions up to and including 4.2.19, lets unauthenticated attackers inject arbitrary web scripts through the 'comment' parameter; because the input is insufficiently sanitized and the output insufficiently escaped, the payload persists and executes in the browser of any user who later loads the injected page. Exposure is narrow rather than universal: the separate AMP plugin must be active in Transitional or Standard template mode and comments must be open on the targeted post (the WordPress default), so sites running Optimole without AMP, or with AMP in Reader mode, do not meet the stated preconditions. No public exploit code was identified at time of analysis and the issue is not in CISA KEV; a fixed plugin release is referenced at tag 4.2.20.
RemediationAI
Update the Optimole plugin to version 4.2.20, the release referenced alongside the Wordfence advisory (https://www.wordfence.com/threat-intel/vulnerabilities/id/3d017da6-553a-4e6e-8a8c-8ec7eda0ed7a?source=cve); this is the primary fix for the sanitization and escaping gaps in the affected 4.2.19 source files. Where an immediate update is not possible, reduce exposure by removing the preconditions the analysis identifies: deactivate the AMP plugin or switch it to Reader template mode, which eliminates the rendering path that the vulnerability depends on (trade-off: loss of Transitional/Standard AMP output and any associated mobile/performance benefits), and close comments on published posts, which removes the injection vector named in the advisory (trade-off: loss of reader engagement). Sites that do not run AMP in Transitional or Standard mode do not meet the stated exploitation preconditions, but upgrading to 4.2.20 remains the complete 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 (cross-site scripting), rooted in missing input sanitization of the 'comment' parameter combined with missing output escaping when that value is rendered back into a page. The affected code base is the optimole-wp WordPress plugin, identified by CPE as optimole:optimole_-_optimize_images_|_convert_webp_&_avif_|_cdn_&_lazy_load_|_image_optimization, with source references at plugin tag 4.2.19 in inc/admin.php, inc/v2/BgOptimizer/Lazyload.php, inc/manager.php and inc/rest.php. What turns a generic comment-field XSS into an environment-specific issue is the delivery path: rendering is reached only when the AMP plugin is active in Transitional or Standard template mode, which is a non-default, site-specific configuration - this dependency is why the independently assessed vector raises attack complexity to AC:H and lowers the practical score relative to the published 7.2/AC:L rating, while both agree on AV:N, PR:N (unauthenticated), UI:N, S:C and impact limited to C:L/I:L/A:N. The precise triggering mechanism beyond the 'comment' parameter path is not described in the available sources; what is confirmed is the AMP template-mode dependency and the open-comments 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 network injection (PR:N, AV:N) but AC:H because exploitation depends on the non-default precondition that AMP runs in Transitional/Standard mode; S:C and C:L/I:L for script execution in the victim browser, A:N.
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.19 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 AMP plugin to be active in Transitional or Standard template mode, and comments must be open on the target post, which is the WordPress default.
Executive ViewAI
CVE-2026-125094 is a high-severity stored cross-site scripting vulnerability in the Optimole WordPress plugin (versions up to 4.2.19). It affects organizations running Optimole alongside the AMP plugin in Transitional or Standard mode with comments enabled, allowing unauthenticated attackers to inject scripts that execute in visitors' browsers. This could lead to session hijacking, defacement, or data theft, impacting site integrity and user trust.
No vendor-released patch identified at time of analysis; interim mitigations include disabling the AMP plugin or switching it to Reader mode, and restricting comment functionality until the patch is applied.
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
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-131498
GHSA-wmj2-rxc5-87qg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB