LuckyWP Table of Contents <= 2.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Heading-Derived Anchor IDs

Medium 4.9 CWE-79Fixed in 2.1.15
ID
WPSEC-2026-4184
Plugin
LuckyWP Table of Contents (luckywp-table-of-contents)
Affected
from 1.9.10 before 2.1.15
Remediation
Update to 2.1.15 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-28
Attack surface
LuckyWP Table of Contents on WPSec AttackSurface
Fix released
Published

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0