MD Table of Contents Generator Security & Risk Analysis

wordpress.org/plugins/md-toc-generator

Plugin to automatically generate a table of contents based on Headings tags.

10 active installs v.1 PHP + WP 3.01+ Updated Unknown
generated-table-of-contentsindextable-of-contents
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is MD Table of Contents Generator Safe to Use in 2026?

Generally Safe

Score 100/100

MD Table of Contents Generator has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs
Risk Assessment

The "md-toc-generator" plugin version 1 presents a mixed security posture. On the positive side, the plugin has no known CVEs, a clean vulnerability history, and a seemingly small attack surface with zero identified AJAX handlers, REST API routes, shortcodes, or cron events. Furthermore, all SQL queries utilize prepared statements, and there are no external HTTP requests or file operations, which are good security practices.

However, significant concerns arise from the static code analysis. The presence of the `unserialize` function, especially without clear indications of sanitization or context, poses a critical risk for deserialization vulnerabilities. Compounding this, 100% of output is not properly escaped, opening the door to Cross-Site Scripting (XSS) attacks. The taint analysis also revealed a flow with unsanitized paths, further increasing the risk of arbitrary file access or manipulation. The complete lack of nonce checks and capability checks across all entry points (even though the attack surface is reported as zero) is concerning if any latent entry points were missed or if future versions introduce them without proper security.

While the absence of historical vulnerabilities is a good sign, it does not negate the immediate risks identified in the code. The plugin demonstrates strengths in avoiding common web vulnerabilities like raw SQL and external requests, but its handling of serialization, output escaping, and potential unsanitized data flows are major weaknesses that require immediate attention.

Key Concerns

  • Unsanitized output detected
  • Dangerous function 'unserialize' used
  • Taint flow with unsanitized path
  • No nonce checks on entry points
  • No capability checks on entry points
Vulnerabilities
None known

MD Table of Contents Generator Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

MD Table of Contents Generator Code Analysis

Dangerous Functions
2
Raw SQL Queries
0
0 prepared
Unescaped Output
8
0 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

unserialize$selectedHeadingsArray = unserialize($selectedHeadingsOption);md-toc-generator.php:54
unserialize$selectedHeadings = unserialize($headingsOption);mdtoc-admin.php:13

Output Escaping

0% escaped8 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

1 flows1 with unsanitized paths
<mdtoc-admin> (mdtoc-admin.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

MD Table of Contents Generator Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 4
actionadmin_menumd-toc-generator.php:34
actionadmin_headmd-toc-generator.php:35
actionwp_headmd-toc-generator.php:36
actionthe_contentmd-toc-generator.php:37
Maintenance & Trust

MD Table of Contents Generator Maintenance & Trust

Maintenance Signals

WordPress version tested3.01
Last updatedUnknown
PHP min version
Downloads2K

Community Trust

Rating20/100
Number of ratings1
Active installs10
Developer Profile

MD Table of Contents Generator Developer Profile

mdavison

2 plugins · 30 total installs

94
trust score
Avg Security Score
100/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect MD Table of Contents Generator

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/md-toc-generator/md-toc-generator.css

HTML / DOM Fingerprints

CSS Classes
toc_containertoc_contenttocLeveltocLink
HTML Comments
<!-- end toc_content --><!-- end toc_container -->
Data Attributes
id="toc_container"id="toc_content"id="tocList"class="tocLink"name="
Shortcode Output
<div id="toc_container"><h1>Table of Contents</h1><div id="toc_content"><!-- end toc_content --><!-- end toc_container -->
FAQ

Frequently Asked Questions about MD Table of Contents Generator