Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIntercept exposed HMAC signature from frontend HTML
-
ExploitCraft malicious payload in 's' parameter
-
ExecutionSubmit authenticated REST request to /wp-json/optimole/v1/optimizations
-
ImpactExecute stored XSS affecting all site visitors
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 | Optimole plugin versions ≤4.2.2 installed on WordPress. Remote unauthenticated attacker exploits /wp-json/optimole/v1/optimizations REST endpoint by injecting malicious payload in 's' parameter. HMAC/timestamp validation bypassed via frontend-exposed values. No user interaction required. |
| Impact | CVSS 7.2 reflects high impact: unauthenticated stored XSS affecting all site visitors via transient persistence. Attack surface is broad-any visitor can poison image srcset attributes. HMAC signature exposure in frontend HTML eliminates authentication friction. Stored nature amplifies blast radius beyond single-session attacks. Wordfence reporting suggests active awareness; widespread plugin deployment elevates priority. |
| Exploit ScenarioDerived | Attacker crafts malicious POST to /wp-json/optimole/v1/optimizations with poisoned 's' parameter (unescaped double-quote breaking srcset context). Value persists via WordPress transients. When any user visits affected page, stored XSS executes in browser with site origin. No user interaction required post-injection. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 11, 2026
Unauthenticated stored XSS in Optimole WordPress plugin (≤4.2.2) allows attackers to inject malicious scripts via the srcset descriptor parameter in the /wp-json/optimole/v1/optimizations REST endpoint. Despite HMAC signature validation, authentication tokens are exposed in frontend HTML, enabling exploitation. Injected payloads persist in WordPress options table via transients and execute when victim browsers render affected pages. No public exploit identified at time of analysis.
RemediationAI
Upstream fix available in WordPress plugin repository code (commits visible in Trac refs); released patched version not independently confirmed. Monitor vendor advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/50417068-339a-4ae5-9c90-8f08f54ce0af?source=cve for official release announcement. As interim mitigation, disable the Optimole plugin until patched version is confirmed available. If plugin use is mandatory, implement Web Application Firewall rules to block requests to /wp-json/optimole/v1/optimizations containing double-quote characters in 's' parameter values, though this may impact legitimate functionality.
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
Insufficient output escaping on srcset descriptor values after sanitize_text_field() processing. Double quotes in user input bypass sanitization, enabling attribute-context XSS when transient-stored descriptors are injected into <img> srcset attributes in tag_replacer.php without proper escaping. CWE-79 manifests through inadequate contextual output encoding in REST API->transient->frontend rendering chain.
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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The Optimole - Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 4.2.2. This is due to insufficient input sanitization and output escaping on the user-supplied 's' parameter (srcset descriptor) in the unauthenticated /wp-json/optimole/v1/optimizations REST endpoint. The endpoint validates requests using an HMAC signature and timestamp, but these values are exposed directly in the frontend HTML making them accessible to any visitor. The plugin uses sanitize_text_field() on the descriptor value of rest.php, which strips HTML tags but does not escape double quotes. The poisoned descriptor is then stored via transients (backed by the WordPress options table) and later retrieved and injected verbatim into the srcset attribute of tag_replacer.php without proper escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that will execute whenever a user accesses the injected page.
Executive ViewAI
Optimole WordPress plugin versions 4.2.2 and earlier contain a stored cross-site scripting vulnerability in the REST API that allows unauthenticated attackers to inject and persistently execute malicious scripts on affected websites. An attacker can compromise site visitors and administrator accounts without requiring valid credentials, potentially leading to data theft, malware distribution, or website defacement across all visitors.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deactivate and remove plugin; (2) Restrict /wp-json/optimole endpoint via firewall or .htaccess with IP allowlisting; (3) Implement HTTP-only and Secure flags on all cookies; (4) Deploy Content Security Policy headers to block inline script execution; (5) Enable WordPress Security.txt logging and monitor for transient manipulation.
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
Exposure of restricted data in Optimole 4.2.14 and earlier lets authenticated WordPress Subscriber-level users read info
EUVD-2026-21662
GHSA-8g9h-q4wq-r7gp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB