{
 "id": "WPSEC-2026-4714",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4714/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4714/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4714/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4714.json",
 "title": "Shariff Wrapper <= 4.6.22 - Unauthenticated Cross-Site Scripting via Shariff Widget Document Title",
 "description": "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.",
 "plugin": {
  "slug": "shariff",
  "name": "Shariff Wrapper",
  "full_name": "Shariff Wrapper",
  "wordpress_org": "https://wordpress.org/plugins/shariff/",
  "advisories_url": "https://wpsec.com/vuln/plugin/shariff/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/shariff"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.1,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "4.5.1",
    "from_inclusive": true,
    "to": "4.6.23",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 4.5.1 before 4.6.23"
  ]
 },
 "introduced_in": "4.5.1",
 "fixed_in": "4.6.23",
 "remediation": "Update to 4.6.23 or later.",
 "fix_released": "2026-12-04T22:19:35+00:00",
 "published": "2026-12-05T22:41:02+00:00",
 "updated": "2026-12-05T10:43:19.271902+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4714/",
  "https://plugins.svn.wordpress.org/shariff/tags/4.6.23/",
  "https://wordpress.org/plugins/shariff/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/shariff",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Low",
  "as_of": "2026-12-05"
 }
}