{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4185",
 "modified": "2026-11-28T12:41:00Z",
 "published": "2026-11-28T12:41:00Z",
 "summary": "LuckyWP Table of Contents <= 2.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Encoded TOC Comment Markers",
 "details": "The LuckyWP Table of Contents plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'lwptocEncodedData' and 'lwptocEncodedToc' HTML comment markers in all versions up to, and including, 2.1.14. This is due to the plugin base64-decoding any such comment found in post content and writing the decoded result back into the page, rather than only decoding markers it created itself. HTML comments survive KSES filtering, so this makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in 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": "luckywp-table-of-contents"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.0.5"
      },
      {
       "fixed": "2.1.15"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.0.5 before 2.1.15"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4185/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/luckywp-table-of-contents/tags/2.1.15/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/luckywp-table-of-contents/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4185/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
