Skip to main content

Optimole WordPress Plugin CVE-2026-125094

| EUVDEUVD-2026-131498 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 Wordfence GHSA-wmj2-rxc5-87qg
7.2
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted comment via 'comment' parameter
  2. Delivery
    Payload stored unsanitized in post comments
  3. Exploit
    AMP renders page in Transitional/Standard mode
  4. Execution
    Script executes in visitor's browser
  5. Impact
    Hijack 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.

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

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

Alert me

AnalysisAIv1 – 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

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

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 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

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 5.4 MEDIUM

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.

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
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 '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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Medium
popular WordPress image-optimization plugin, but exploit also requires AMP plugin
Data Quality
3 sources
Confidence: Low

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.5%
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

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

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-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