{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4509",
 "modified": "2026-12-03T12:50:55Z",
 "published": "2026-12-03T12:50:55Z",
 "summary": "Add Expires Headers & Optimized Minify <= 3.4.0 - Authenticated (Administrator+) Stored Cross-Site Scripting via Lazy Loading Settings",
 "details": "The add-expires-headers plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the lazy loading settings (animation on load, shortcode tags and exclude selectors) in all versions up to, and including, 3.4.0 due to insufficient input sanitization and output escaping. The animation setting was printed into the class attribute of lazily-loaded elements on the front end, and the other values were echoed unescaped on the settings page. This makes it possible for authenticated attackers with administrator-level access to inject arbitrary web scripts in pages that will execute whenever a user accesses an affected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "add-expires-headers"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "4.0.0"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 4.0.0"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4509/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/add-expires-headers/tags/4.0.0/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/add-expires-headers/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4509/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
