{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4714",
 "modified": "2026-12-05T22:41:02Z",
 "published": "2026-12-05T22:41:02Z",
 "summary": "Shariff Wrapper <= 4.6.22 - Unauthenticated Cross-Site Scripting via Shariff Widget Document Title",
 "details": "The Shariff Wrapper plugin for WordPress is vulnerable to Cross-Site Scripting via the Shariff widget in all versions up to, and including, 4.6.22. This is due to the widget building a [shariff] shortcode string from the document title and running do_shortcode() on it after decoding HTML entities with html_entity_decode(), which turns encoded double quotes back into literal quotes. An entity-encoded quote in a search query, an author display name or a post title can therefore close the title attribute and add further shortcode attributes to the rendered buttons. This makes it possible for unauthenticated attackers to inject arbitrary web scripts through a crafted search query that runs when a user follows a link to the search results page (reflected). It also makes it possible for authenticated attackers, with subscriber-level access and above, to store a payload in their display name that runs whenever someone visits their author archive (stored), as long as the Shariff widget is shown on those pages.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "shariff"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "4.5.1"
      },
      {
       "fixed": "4.6.23"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 4.5.1 before 4.6.23"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4714/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/shariff/tags/4.6.23/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/shariff/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4714/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
