Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRead plaintext HMAC from page JS
-
DeliveryForge signed REST request
-
ExploitInject script via 's' parameter
-
ExecutionPayload stored unsanitized
-
ImpactScript executes in visitor browsers
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 the Optimole plugin (versions ≤ 4.2.18) to be installed and active, and crucially a page with an 'incomplete profile', because that condition causes the plugin to emit the HMAC signature in plaintext inside the inline optimoleDataOptimizer JavaScript object visible to unauthenticated visitors - this is the specific prerequisite that collapses the REST endpoint's authorization check. Given that HMAC exposure, the attack is remote and unauthenticated (CVSS PR:N) against default-configured installations in the incomplete-profile state. The limiting factors are: the site must be in that incomplete-profile condition for the signature to be exposed, and the impact is stored XSS (C:L/I:L, no availability impact), so realized harm depends on a user subsequently loading an injected page; the HMAC gating means a fully-configured profile may not expose the signature the same way, which bounds the exposure window. |
| Impact | This is a genuine priority within the WordPress plugin ecosystem, though not a drop-everything emergency. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, base 7.2) describes a network-reachable, low-complexity, unauthenticated stored XSS with scope change - consistent with the description's claim that the HMAC signature gating the REST endpoint is published in plaintext inside the inline optimoleDataOptimizer JavaScript object, effectively nullifying the authentication barrier. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with a serious-but-not-actively-exploited posture. No CISA KEV listing is present and no EPSS probability was supplied, so widespread automated exploitation is not evidenced; the provided references are the vendor advisory and source-code/patch links rather than a working exploit, so there is no confirmed public exploit code. The main signals agree (unauthenticated + stored + self-executing XSS = real risk), but the absence of EPSS and KEV data means the practical exploitation likelihood cannot be quantified from this input and should be treated as plausible rather than confirmed-in-the-wild. |
| Exploit ScenarioDerived | An unauthenticated attacker visits a site running Optimole with an incomplete profile, scrapes the plaintext HMAC signature from the inline optimoleDataOptimizer JavaScript object, and uses it to pass the REST endpoint authorization check. They then submit a crafted request whose 's' (missing_srcsets[*][*].s) parameter contains a malicious script, which is stored without sanitization and executed in the browser of any user who later loads an affected page. No working public exploit code is identified in the supplied data, though the vendor advisory and patch changeset are public. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 07, 2026
Stored cross-site scripting in the Optimole image-optimization plugin for WordPress (all versions up to and including 4.2.18) lets remote attackers inject arbitrary JavaScript into pages via the missing_srcsets[*][*].s parameter, which is insufficiently sanitized and escaped. The REST endpoint that should gate this write normally requires an HMAC signature, but the plugin publishes that signature in plaintext inside the inline optimoleDataOptimizer JavaScript object to unauthenticated visitors whenever a page renders with an incomplete profile, so the effective authentication barrier is nonexistent (CVSS 3.1: 7.2, AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N). Impact is limited to stored script execution in the browsers of users who later load an injected page, with no availability impact; no public exploit code has been identified at time of analysis, and the vulnerability is not in CISA KEV. Priority is rated this_week: significant within the WordPress plugin ecosystem, but not a drop-everything emergency given the incomplete-profile prerequisite and the limited C/I impact.
RemediationAI
Upgrade the Optimole plugin past version 4.2.18 to a release that contains the fix; the advisory references a WordPress.org plugin changeset (https://plugins.trac.wordpress.org/changeset?reponame=&old=3784828%40optimole-wp&new=3784828%40optimole-wp), which indicates an upstream fix is available, but a specific patched release number is not independently confirmed in the supplied data, so verify the current plugin version in the WordPress.org directory before or after updating and confirm the changeset is included. Until a patched build is deployed, the most direct compensating control is to complete the Optimole onboarding/profile configuration so the plugin stops emitting the HMAC signature in the optimoleDataOptimizer inline object to unauthenticated visitors - the trade-off is that this only removes the signature exposure path and does not repair the underlying sanitization defect, so any other route to the endpoint remains a risk, and it also commits the site to full Optimole configuration. Where image optimization is not essential, deactivating and removing the plugin eliminates the attack surface entirely, at the cost of losing CDN, lazy-load and WebP/AVIF conversion features. Restricting access to the plugin's REST routes (for example by blocking unauthenticated requests to the optimole REST namespace at the reverse proxy or WAF) reduces exposure but can break legitimate front-end optimization behavior, so test before enforcing. Consult the Wordfence advisory for the vendor's remediation guidance and monitor for the patched version.
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 a CWE-79 stored cross-site scripting defect in the Optimole plugin's image tag rewriting pipeline. Image markup is processed in inc/tag_replacer.php (notably around lines 312 and 529) and managed through inc/manager.php, where the missing_srcsets array - including its nested [*][*].s element - is written into rendered output without adequate sanitization or output escaping. The write path runs through the plugin's REST endpoint in inc/rest.php (lines 102 and 159), which is protected by an HMAC signature check. The critical weakness is key management rather than the endpoint logic itself: when the site's Optimole profile is incomplete, the plugin emits the required HMAC signature in plaintext inside the inline optimoleDataOptimizer JavaScript object on ordinary front-end pages, so any unauthenticated visitor can read the secret that the authorization check relies on. With that signature in hand, the authorization requirement collapses and the sanitization gap becomes remotely exploitable without credentials or user interaction during injection (CVSS PR:N/UI:N). The vector's Scope:Changed rating reflects that injected script executes in the context of the WordPress site's pages rather than staying confined to the vulnerable component. The trigger for the escaping failure is described in the available sources only in terms of missing sanitization and escaping on the missing_srcsets parameter; the exact code path from REST request to rendered page is not fully detailed in the supplied evidence. Exploitation is bounded by the incomplete-profile condition - a fully configured profile may not emit the signature in the same way, which limits the exposure window and means affected sites are not uniformly reachable.
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 (PR:N) because the HMAC is published to anonymous visitors; network vector, low complexity, scope change as injected script executes in users' browsers, limited C/I and no availability impact.
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 's (missing_srcsets[*][*].s)' parameter in all versions up to, and including, 4.2.18 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. The HMAC signature required to pass the REST endpoint's authorization check is published in plaintext to unauthenticated visitors inside the inline optimoleDataOptimizer JavaScript object on any page with an incomplete profile, making the effective authentication barrier nonexistent.
Executive ViewAI
A high-severity stored cross-site scripting vulnerability in the Optimole WordPress plugin (up to version 4.2.18) allows unauthenticated attackers to inject malicious JavaScript into pages viewed by site visitors. This compromises visitor trust and can lead to session hijacking, data theft, or malware distribution, affecting any organization using the plugin on customer-facing websites. Leadership should prioritize remediation to protect brand reputation and user data.
No vendor-released patch identified at time of analysis. Interim mitigations include disabling the Optimole plugin, implementing WAF rules to block malicious payloads targeting the missing_srcsets parameter, and restricting access to the REST endpoint.
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 Stored XSS Flaws
View all 3Stored 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 through 4.2.10) allows
Unauthenticated stored XSS in Optimole WordPress plugin (≤4.2.2) allows attackers to inject malicious scripts via the sr
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-118600
GHSA-crfc-xm73-w674
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB