{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-1297",
 "modified": "2026-11-23T07:06:33Z",
 "published": "2026-10-21T10:43:36Z",
 "summary": "SureCookie <= 1.6.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-surecookie-restore' Attribute",
 "details": "The SureCookie plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data-surecookie-restore' HTML attribute of Presto Player placeholder elements in all versions up to, and including, 1.6.1. This is due to the plugin's front-end script trusting any element with the 'surecookie-placeholder-presto' class and a consent category: it parses the element's 'data-surecookie-restore' value as HTML, inserts it into the page and re-creates any script elements it contains as executable scripts. WordPress's KSES filtering allows class and data-* attributes on div elements in post content, so this markup survives. This makes it possible for authenticated attackers with contributor-level access and above, who lack the unfiltered_html capability, to inject arbitrary web scripts into pages that will execute whenever a user accesses an injected page.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "surecookie"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "1.5.0"
      },
      {
       "fixed": "1.7.0"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 1.5.0 before 1.7.0"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-1297/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/surecookie/tags/1.7.0/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/surecookie/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-1297/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
