{
 "id": "WPSEC-2026-4712",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4712/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4712/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4712/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4712.json",
 "title": "EWWW Image Optimizer <= 8.9.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Background Image URLs",
 "description": "The EWWW Image Optimizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via background-image URLs in the inline style attributes of post content in all versions up to, and including, 8.9.3. This is due to insufficient input sanitization and output escaping: when Lazy Load rewrites an element with an inline background image, the plugin decodes HTML entities in the URL and copies the result, including raw angle brackets, into generated attributes such as data-back without validating or escaping it as a URL. The JS WebP rewriter, which parses image tags with a regular expression, then treats the decoded markup as an image tag and adds double-quoted attributes to it, which breaks out of the attribute. 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. Exploitation requires the plugin's Lazy Load and JS WebP Rewriting features to be enabled, a local image with a WebP copy, and WordPress 7.0 or later, whose kses keeps entity-encoded markup in style attributes.",
 "plugin": {
  "slug": "ewww-image-optimizer",
  "name": "EWWW Image Optimizer",
  "full_name": "EWWW Image Optimizer",
  "wordpress_org": "https://wordpress.org/plugins/ewww-image-optimizer/",
  "advisories_url": "https://wpsec.com/vuln/plugin/ewww-image-optimizer/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/ewww-image-optimizer"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.9,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "4.9.3",
    "from_inclusive": true,
    "to": "8.9.4",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 4.9.3 before 8.9.4"
  ]
 },
 "introduced_in": "4.9.3",
 "fixed_in": "8.9.4",
 "remediation": "Update to 8.9.4 or later.",
 "fix_released": "2026-12-04T21:06:35+00:00",
 "published": "2026-12-05T21:42:49+00:00",
 "updated": "2026-12-05T10:46:39.434704+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4712/",
  "https://plugins.svn.wordpress.org/ewww-image-optimizer/tags/8.9.4/",
  "https://wordpress.org/plugins/ewww-image-optimizer/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/ewww-image-optimizer",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "High",
  "affected_versions": "High",
  "as_of": "2026-12-05"
 }
}