Skip to main content

Optimole CVE-2026-5226

| EUVDEUVD-2026-21664 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-11 Wordfence
6.1
CVSS 3.1 · NVD
View

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.

Impact

This vulnerability presents moderate real-world risk. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) indicates network-based attack with low complexity and no authentication required, but user interaction (UI:R) is mandatory-the attacker must trick a victim into clicking a malicious link. The scope change (S:C) means the vulnerability can affect resources beyond the vulnerable component. CVSS score of 6.1 reflects the need for user interaction, limiting attack surface compared to unauthenticated RCE or stored XSS. No KEV (CISA Known Exploited Vulnerability) status is indicated, and no public proof-of-concept code availability is documented in the provided data. The vulnerability is not actively exploited at scale based on available intelligence. However, reflected XSS against WordPress plugins affects millions of sites, and Wordfence reporting suggests the finding is credible and patched in newer versions (4.2.4+), indicating vendor responsiveness. The risk is elevated if the plugin is widely installed; WordPress plugin statistics would inform priority.

Exploit ScenarioDerived

An attacker crafts a malicious URL containing JavaScript payload embedded in the path parameter, such as: https://target-site.com/page?url=javascript:alert(document.cookie). When a site administrator, editor, or regular WordPress user clicks this link while logged into the WordPress site, the injected JavaScript executes in their browser context, potentially allowing the attacker to steal session cookies, session tokens, or perform actions on behalf of the authenticated user. No public exploit code availability is documented in the provided intelligence, and the vulnerability requires social engineering to succeed (user must click the malicious link).

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

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

Alert me

AnalysisAIv1 – Apr 11, 2026

Reflected Cross-Site Scripting (XSS) in Optimole - Optimize Images in Real Time WordPress plugin versions up to 4.2.3 allows unauthenticated attackers to inject arbitrary JavaScript through malicious URL paths. The vulnerability stems from insufficient output escaping in the get_current_url() function, which are then inserted into JavaScript code via str_replace() without proper JavaScript context escaping in replace_content(). An attacker can craft a malicious link that, when clicked by a WordPress user, executes injected scripts in the context of the user's browser session with CVSS 6.1 (Medium) severity.

RemediationAI

Update the Optimole - Optimize Images in Real Time plugin to version 4.2.4 or later, which resolves the XSS vulnerability by implementing proper JavaScript context escaping in the get_current_url() and replace_content() functions. Users should immediately apply this patch via the WordPress plugin update mechanism (Plugins > Installed Plugins > Update Available). For environments where immediate patching is not feasible, temporarily disable the Optimole plugin until patched versions can be deployed. Verify the update completion by confirming the installed version matches 4.2.4 or higher in the WordPress plugin management interface. Additional information and confirmation of the fix is available via the WordPress plugin repository changeset reference: https://plugins.trac.wordpress.org/changeset?old_path=%2Foptimole-wp/tags/4.2.3&new_path=%2Foptimole-wp/tags/4.2.4

Affected VersionsENISA

Optimole – Optimize Images in Real Time 0 ≤4.2.3

Affected Packages

euvd optimole_optimize_images_in_real_time 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 Optimole plugin processes user-supplied URL paths through the get_current_url() function without adequate output escaping. These unescaped values are subsequently embedded into JavaScript code via str_replace() in the replace_content() function, failing to apply JavaScript-specific escaping (such as JSON encoding or proper quote/special character handling). This violates the fundamental principle of context-aware output encoding-while HTML entity encoding may be applied, JavaScript context requires different escaping rules. CWE-79 (Improper Neutralization of Input During Web Page Generation) categorizes this as a classic reflected XSS vulnerability. The affected CPE cpe:2.3:a:optimole:optimole_-_optimize_images_in_real_time:*:*:*:*:*:*:*:* indicates all versions of the plugin are potentially impacted, with confirmed vulnerability through version 4.2.3.

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

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The Optimole - Optimize Images in Real Time plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via URL paths in versions up to, and including, 4.2.3 This is due to insufficient output escaping on user-supplied URL paths in the get_current_url() function, which are inserted into JavaScript code via str_replace() without proper JavaScript context escaping in the replace_content() function. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Threat Intelligence Overview

EPSS Score
0.1%
Top 73% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.1%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Related Vulnerabilities in Optimole Plugin XSS Vulnerabilities

View all 2
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-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