Description
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.
Published: 2026-08-19
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The EWWW Image Optimizer plugin contains a stored cross‑site scripting flaw (CWE‑79) caused by insufficient input sanitization and output escaping that is triggered through a crafted img element with a class of lazyload and a data‑script attribute pointing to an external URL. Because the plugin’s lazysizes ls.unveilhooks addon blindly creates and inserts a script element into the DOM when the page loads, an authenticated attacker with contributor or higher permissions can inject arbitrary JavaScript that will run in the browsers of any visitor who views the affected post content. The primary impact is the execution of arbitrary code on user browsers, as described in the CVE record.

Affected Systems

Any WordPress installation using a version of the EWWW Image Optimizer plugin up to and including 8.7.3 is affected. Sites that have contributors or higher‑level roles that can edit post content are particularly vulnerable, as the attacker needs to insert the malicious img markup into a post or page.

Risk and Exploitability

The flaw has a CVSS score of 6.4, indicating moderate severity, but its EPSS score is less than 1 %, suggesting a very low likelihood of exploitation at this time. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires that the attacker first gain contributor or higher‑level access to the site and then add the malicious image to post content; once added, every visitor who loads the page will execute the injected script. The attack is feasible because the plugin does not sanitize or escape the data‑script attribute before rendering it into the page output.

Generated by OpenCVE AI on August 20, 2026 at 19:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade EWWW Image Optimizer to version 8.7.4 or later, or to the latest available release, which removes the vulnerable lazy‑load handling.
  • If an upgrade cannot be performed immediately, disable the lazy‑load feature or remove the ls.unveilhooks add‑on so that data‑script attributes are not processed into script tags.
  • Restrict contributor or higher roles so that only trusted users can edit post content, or enforce strict content sanitization policies to prevent injection of malicious attributes.

Generated by OpenCVE AI on August 20, 2026 at 19:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 13:00:00 +0000

Type Values Removed Values Added
First Time appeared Nosilver4u
Nosilver4u ewww Image Optimizer
Wordpress
Wordpress wordpress
Vendors & Products Nosilver4u
Nosilver4u ewww Image Optimizer
Wordpress
Wordpress wordpress

Wed, 19 Aug 2026 07:00:00 +0000

Type Values Removed Values Added
Description 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.
Title EWWW Image Optimizer <= 8.7.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-script' Lazy Load Attribute in Post Content
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Nosilver4u Ewww Image Optimizer
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-08-20T15:26:35.613Z

Reserved: 2026-07-10T19:15:03.406Z

Link: CVE-2026-15446

cve-icon Vulnrichment

Updated: 2026-08-20T15:26:21.481Z

cve-icon NVD

Status : Deferred

Published: 2026-08-19T07:16:27.530

Modified: 2026-08-20T16:17:08.427

Link: CVE-2026-15446

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T12:31:34Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')