{
 "id": "WPSEC-2026-4184",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4184/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4184/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4184/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4184.json",
 "title": "LuckyWP Table of Contents <= 2.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Heading-Derived Anchor IDs",
 "description": "The LuckyWP Table of Contents plugin for WordPress is vulnerable to Stored Cross-Site Scripting via heading-derived anchor IDs in all versions up to, and including, 2.1.14. This is due to insufficient sanitization of anchor IDs generated from heading text when the \"As heading without transliterate\" hash format is used, combined with missing output escaping of those IDs in the href attribute of table of contents links. 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, provided the non-default hash format is enabled.",
 "plugin": {
  "slug": "luckywp-table-of-contents",
  "name": "LuckyWP Table of Contents",
  "full_name": "LuckyWP Table of Contents",
  "wordpress_org": "https://wordpress.org/plugins/luckywp-table-of-contents/",
  "advisories_url": "https://wpsec.com/vuln/plugin/luckywp-table-of-contents/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/luckywp-table-of-contents"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.9,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.9.10",
    "from_inclusive": true,
    "to": "2.1.15",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.9.10 before 2.1.15"
  ]
 },
 "introduced_in": "1.9.10",
 "fixed_in": "2.1.15",
 "remediation": "Update to 2.1.15 or later.",
 "fix_released": "2026-11-27T12:38:02+00:00",
 "published": "2026-11-28T12:41:00+00:00",
 "updated": "2026-11-28T10:52:13.232978+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4184/",
  "https://plugins.svn.wordpress.org/luckywp-table-of-contents/tags/2.1.15/",
  "https://wordpress.org/plugins/luckywp-table-of-contents/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/luckywp-table-of-contents",
 "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-11-28"
 }
}