Shortcode Table of Contents Security & Risk Analysis

wordpress.org/plugins/shortcode-toc

Display an automated table of contents via shortcode.

300 active installs v1.0.3 PHP + WP 4.0+ Updated Jul 31, 2018
anchorificanchorsshortcode-table-of-contentstable-of-contentstoc
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Shortcode Table of Contents Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 7yr ago
Risk Assessment

The shortcode-toc plugin, version 1.0.3, exhibits a generally strong security posture based on the provided static analysis. The absence of dangerous functions, reliance on prepared statements for all SQL queries, and 100% proper output escaping are significant strengths. Furthermore, no external HTTP requests, file operations, or taint analysis issues were identified, indicating a well-contained and secure codebase. The plugin also has a clean vulnerability history with zero recorded CVEs, which is highly encouraging.

However, a notable concern is the complete lack of nonce checks and capability checks across all entry points. While the static analysis reported zero unprotected entry points (suggesting the single shortcode might not be directly exploitable without further context), the absence of these fundamental WordPress security mechanisms leaves it vulnerable to potential cross-site request forgery (CSRF) attacks if the shortcode's functionality is sensitive or can be manipulated to perform unintended actions. This omission represents a significant gap in defense against common web attack vectors.

In conclusion, shortcode-toc v1.0.3 demonstrates good coding practices in critical areas like SQL and output handling, and has a flawless security track record. Nevertheless, the missing nonce and capability checks introduce a significant risk that should be addressed by developers to ensure comprehensive security.

Key Concerns

  • Missing nonce checks on all entry points
  • Missing capability checks on all entry points
Vulnerabilities
None known

Shortcode Table of Contents Security Vulnerabilities

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

Shortcode Table of Contents Code Analysis

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

Output Escaping

100% escaped14 total outputs
Attack Surface

Shortcode Table of Contents Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[toc] inc\class-shortcodes.php:19
WordPress Hooks 1
actionwp_enqueue_scriptsinc\class-assets.php:15
Maintenance & Trust

Shortcode Table of Contents Maintenance & Trust

Maintenance Signals

WordPress version tested4.9.29
Last updatedJul 31, 2018
PHP min version
Downloads28K

Community Trust

Rating94/100
Number of ratings6
Active installs300
Developer Profile

Shortcode Table of Contents Developer Profile

jamesckemp

3 plugins · 900 total installs

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

How We Detect Shortcode Table of Contents

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/shortcode-toc/assets/vendor/js/anchorific.js
Script Paths
/wp-content/plugins/shortcode-toc/assets/vendor/js/anchorific.js
Version Parameters
shortcode-toc/1.0.3anchorific.js?ver=1.0.3

HTML / DOM Fingerprints

CSS Classes
shortcode-toc
JS Globals
JCK_STOC_VERSION
Shortcode Output
<div class="shortcode-toc"></div>
FAQ

Frequently Asked Questions about Shortcode Table of Contents