{
 "id": "WPSEC-2026-1297",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1297/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1297/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1297/index.md",
 "title": "SureCookie <= 1.6.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-surecookie-restore' Attribute",
 "description": "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.",
 "plugin": {
  "slug": "surecookie",
  "name": "SureCookie",
  "full_name": "SureCookie – GDPR Cookie Consent Banner, Cookie Scanner & Script Blocking",
  "wordpress_org": "https://wordpress.org/plugins/surecookie/",
  "advisories_url": "https://wpsec.com/vuln/plugin/surecookie/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/surecookie"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.5.0",
    "from_inclusive": true,
    "to": "1.7.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.5.0 before 1.7.0"
  ]
 },
 "introduced_in": "1.5.0",
 "fixed_in": "1.7.0",
 "remediation": "Update to 1.7.0 or later.",
 "fix_released": "2026-10-20T06:56:31+00:00",
 "published": "2026-10-21T10:43:36+00:00",
 "updated": "2026-10-21T10:34:53.269881+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1297/",
  "https://plugins.svn.wordpress.org/surecookie/tags/1.7.0/",
  "https://wordpress.org/plugins/surecookie/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/surecookie",
 "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-10-21"
 }
}