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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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
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 XSS Vulnerabilities
View all 2Stored 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
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-21664
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB