Recent Category Posts Widget Security & Risk Analysis

wordpress.org/plugins/category-posts-widget

This widget will let you display a list of the most recent posts in a single category in your sidebar.

300 active installs v2.0 PHP + WP 2.7+ Updated Jul 5, 2012
categoriescategorywidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Recent Category Posts Widget Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 13yr ago
Risk Assessment

The "category-posts-widget" v2.0 plugin exhibits a mixed security posture. On the positive side, the plugin has a clean vulnerability history with zero recorded CVEs, suggesting a generally well-maintained and secure codebase. Furthermore, the static analysis shows a complete absence of SQL queries that are not using prepared statements, no file operations, and no external HTTP requests. The attack surface is also reported as zero, with no AJAX handlers, REST API routes, shortcodes, or cron events exposed without authentication checks, which is a strong indicator of good security practices.

However, there are significant concerns stemming from the code signals. The presence of the `create_function` call is a critical security risk as it is deprecated and can be exploited for code injection vulnerabilities if not handled with extreme care. Additionally, only 33% of the output escaping is properly handled, meaning a substantial portion of user-generated or dynamically generated content displayed by the widget could be vulnerable to Cross-Site Scripting (XSS) attacks. The complete lack of nonce checks and capability checks on any identified entry points (though none are explicitly listed as unprotected) is a serious oversight, leaving potential avenues for unauthorized actions or data manipulation.

In conclusion, while the plugin's development history and lack of exploitable SQL are commendable, the identified security flaws in `create_function` usage and insufficient output escaping, coupled with the absence of authorization checks, present notable risks. The plugin would significantly benefit from addressing these specific code-level vulnerabilities to achieve a more robust security posture.

Key Concerns

  • Dangerous function: create_function used
  • Only 33% of output escaping proper
  • No nonce checks found
  • No capability checks found
Vulnerabilities
None known

Recent Category Posts Widget Security Vulnerabilities

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

Recent Category Posts Widget Code Analysis

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

Dangerous Functions Found

create_functionadd_action( 'widgets_init', create_function( '', 'register_widget( "single_category_posts_widget" );widget_cat_posts.php:93

Output Escaping

33% escaped18 total outputs
Attack Surface

Recent Category Posts Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actionwidgets_initwidget_cat_posts.php:93
Maintenance & Trust

Recent Category Posts Widget Maintenance & Trust

Maintenance Signals

WordPress version tested3.4.2
Last updatedJul 5, 2012
PHP min version
Downloads21K

Community Trust

Rating100/100
Number of ratings2
Active installs300
Developer Profile

Recent Category Posts Widget Developer Profile

George Stephanis

16 plugins · 16K total installs

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

How We Detect Recent Category Posts Widget

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
single_category_posts_widget
Data Attributes
id="single_category_posts_widget"
FAQ

Frequently Asked Questions about Recent Category Posts Widget