Related Posts Widget Security & Risk Analysis

wordpress.org/plugins/related-posts-widget

Adds a widget that shows posts related to the current post based on tags.

100 active installs v2.0.1 PHP + WP 3.0+ Updated Dec 16, 2015
related-postsrelated-posts-widgetsimilar-posts-widget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Related Posts Widget Safe to Use in 2026?

Generally Safe

Score 85/100

Related Posts Widget has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 10yr ago
Risk Assessment

The security posture of the "related-posts-widget" v2.0.1 plugin appears mixed, showing some good practices alongside significant concerns. On the positive side, there are no detected AJAX handlers, REST API routes, shortcodes, or cron events, indicating a minimal attack surface. Furthermore, all SQL queries utilize prepared statements, and there are no file operations or external HTTP requests, which are excellent security practices. However, the presence of two instances of the dangerous `create_function` PHP function is a major red flag, as this function is deprecated and can lead to serious security vulnerabilities, particularly if user input is involved. The low percentage (11%) of properly escaped output is also a significant concern, suggesting a high risk of Cross-Site Scripting (XSS) vulnerabilities. The absence of any known CVEs or recorded vulnerabilities is a positive indicator, but this could be due to the limited analysis scope or a lack of historical reporting rather than inherent security. Overall, while the plugin avoids common attack vectors and handles database interactions safely, the use of `create_function` and poor output escaping introduce substantial risks that need immediate attention.

Key Concerns

  • Use of dangerous 'create_function'
  • Low percentage of properly escaped output
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Related Posts Widget Security Vulnerabilities

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

Related Posts Widget Code Analysis

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

Dangerous Functions Found

create_function$new_excerpt_length = create_function('$length', "return " . $instance["excerpt_length"] . ";");related-posts.php:67
create_functionadd_action( 'widgets_init', create_function('', 'return register_widget("RelatedPosts");') );related-posts.php:258

Output Escaping

11% escaped37 total outputs
Attack Surface

Related Posts Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
actionwp_enqueue_scriptsrelated-posts.php:19
filterexcerpt_lengthrelated-posts.php:69
actionwidgets_initrelated-posts.php:258
Maintenance & Trust

Related Posts Widget Maintenance & Trust

Maintenance Signals

WordPress version tested4.4.34
Last updatedDec 16, 2015
PHP min version
Downloads11K

Community Trust

Rating20/100
Number of ratings1
Active installs100
Developer Profile

Related Posts Widget Developer Profile

Mrinal Roy

3 plugins · 800 total installs

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

How We Detect Related Posts Widget

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/related-posts-widget/related-posts.css
Version Parameters
related-posts-widget/related-posts.css?ver=

HTML / DOM Fingerprints

CSS Classes
rel-post-widget
FAQ

Frequently Asked Questions about Related Posts Widget