
LuckyWP Table of Contents Security & Risk Analysis
wordpress.org/plugins/luckywp-table-of-contentsCreates SEO-friendly table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
Is LuckyWP Table of Contents Safe to Use in 2026?
Generally Safe
Score 97/100LuckyWP Table of Contents has a strong security track record. Known vulnerabilities have been patched promptly.
The luckywp-table-of-contents plugin exhibits a mixed security posture. On the positive side, it demonstrates good practices by utilizing prepared statements for all SQL queries and incorporating nonce checks and capability checks. The absence of dangerous functions, file operations, and external HTTP requests is also a strength. However, a significant concern arises from the large attack surface presented by 11 unprotected AJAX handlers. While taint analysis shows no critical or high severity unsanitized flows, the presence of two flows with unsanitized paths is a potential area of risk that warrants attention, especially given the unprotected entry points.
The plugin's vulnerability history reveals a concerning pattern of 5 medium-severity Cross-Site Scripting (XSS) vulnerabilities. Although all historical CVEs are currently patched, this trend suggests a recurring weakness in input sanitization and output escaping, which is further supported by the static analysis showing only 5% of outputs are properly escaped. This low rate of proper escaping on a large number of outputs (272) significantly increases the risk of XSS vulnerabilities being introduced, even if they are not immediately apparent in the current version.
In conclusion, while the plugin has strengths in its database query handling and some security checks, the extensive unprotected AJAX endpoints and the low rate of output escaping are substantial weaknesses. The past history of XSS vulnerabilities further amplifies these concerns. Mitigation efforts should prioritize addressing the unprotected AJAX handlers and improving output escaping across the plugin's code to prevent future XSS exploits.
Key Concerns
- 11 unprotected AJAX handlers
- Low output escaping (5%)
- 2 flows with unsanitized paths
- History of 5 medium XSS vulnerabilities
LuckyWP Table of Contents Security Vulnerabilities
CVEs by Year
Severity Breakdown
5 total CVEs
LuckyWP Table of Contents <= 2.1.10 - Cross-Site Request Forgery to Reflected Cross-Site Scripting
LuckyWP Table of Contents <= 2.1.6 - Authenticated (Admin+) Stored Cross-Site Scripting
LuckyWP Table of Contents <= 2.1.5 - Reflected Cross-Site Scripting
LuckyWP Table of Contents <= 2.1.5 - Authenticated (Administrator+) Cross-Site Scripting
LuckyWP Table of Contents <= 2.1.4 - Authenticated (Contributor+) Stored Cross-Site Scripting
LuckyWP Table of Contents Code Analysis
SQL Query Safety
Output Escaping
Data Flow Analysis
LuckyWP Table of Contents Attack Surface
AJAX Handlers 11
WordPress Hooks 52
Maintenance & Trust
LuckyWP Table of Contents Maintenance & Trust
Maintenance Signals
Community Trust
LuckyWP Table of Contents Alternatives
Anik Smart Table of Contents
anik-smart-table-of-contents
A lightweight, SEO-friendly Table of Contents plugin that automatically generates TOC from your headings with smooth scroll and collapsible features.
Heroic Table of Contents
heroic-table-of-contents
Heroic Table of Contents is the easiest way to add a table of contents to your site.
TOP Table Of Contents
top-table-of-contents
Easily creates SEO-friendly table of contents for your blog posts and pages. Offers both Auto and Manual Insert with highly customization options.
Table of Contents Creator
table-of-contents-creator
Table of Contents Creator automatically generates a highly customizable dynamic site wide table of contents that is always up-to-date.
F70 Simple Table of Contents
f70-simple-table-of-contents
Display a table of contents in your posts by automatically generated from the headings. No Javascript code, simple to use.
LuckyWP Table of Contents Developer Profile
5 plugins · 119K total installs
How We Detect LuckyWP Table of Contents
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/luckywp-table-of-contents/admin/assets/main.min.css/wp-content/plugins/luckywp-table-of-contents/admin/assets/main.min.js/wp-content/plugins/luckywp-table-of-contents/admin/assets/main.min.jsluckywp-table-of-contents/admin/assets/main.min.css?ver=luckywp-table-of-contents/admin/assets/main.min.js?ver=HTML / DOM Fingerprints
lwptoc-containerdata-lwptoc-settingslwptocMain