{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3831",
 "modified": "2026-11-25T03:43:30Z",
 "published": "2026-11-25T03:43:30Z",
 "summary": "Relevanssi <= 4.28.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Tags",
 "details": "The Relevanssi plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post tag names in all versions up to, and including, 4.28.9. This is due to insufficient output sanitization in the relevanssi_the_tags() and relevanssi_get_the_tags() template functions. Each tag name goes through Relevanssi's highlighting, which decodes HTML entities, so HTML-encoded markup stored in a tag name becomes live HTML. When the list is returned rather than echoed, it is returned without sanitization. This makes it possible for authenticated attackers with contributor-level access and above, who can create tags when they save a post, to inject arbitrary web scripts. The scripts run when a user visits a page whose theme outputs the returned tag list.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "relevanssi"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "4.28.10"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 4.28.10"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3831/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/relevanssi/tags/4.28.10/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/relevanssi/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3831/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
