{
 "id": "WPSEC-2026-4510",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4510/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4510/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4510/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4510.json",
 "title": "Add Expires Headers & Optimized Minify <= 3.4.0 - Unauthenticated Stored Cross-Site Scripting via HTML Minifier",
 "description": "The add-expires-headers plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the HTML minifier in all versions up to, and including, 3.4.0. The minifier used a predictable placeholder token and did not restore protected content in a single pass, so attacker-supplied content containing the placeholder could be swapped for other markup. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that will execute whenever a user accesses an affected page, provided HTML minification is enabled.",
 "plugin": {
  "slug": "add-expires-headers",
  "name": "Add Expires Headers & Optimized Minify",
  "full_name": "Add Expires Headers & Optimized Minify",
  "wordpress_org": "https://wordpress.org/plugins/add-expires-headers/",
  "advisories_url": "https://wpsec.com/vuln/plugin/add-expires-headers/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/add-expires-headers"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.0.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.0.0"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.0.0",
 "remediation": "Update to 4.0.0 or later.",
 "fix_released": "2026-12-02T10:14:10+00:00",
 "published": "2026-12-03T12:50:55+00:00",
 "updated": "2026-12-03T12:35:59.620389+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4510/",
  "https://plugins.svn.wordpress.org/add-expires-headers/tags/4.0.0/",
  "https://wordpress.org/plugins/add-expires-headers/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/add-expires-headers",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-12-03"
 }
}