Random Posts Security & Risk Analysis

wordpress.org/plugins/random-posts-plugin

Displays a list of random posts.

400 active installs v2.6.2.0 PHP + WP 1.5+ Updated Nov 28, 2017
post-pluginspostsrandomrandom-posts
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Random Posts Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 8yr ago
Risk Assessment

The random-posts-plugin v2.6.2.0 exhibits a generally positive security posture from a static analysis perspective, with no identified dangerous functions, SQL injection vulnerabilities due to prepared statements, or file operations. The absence of external HTTP requests and bundled libraries further reduces potential attack vectors. However, a significant concern arises from the complete lack of output escaping on all 14 identified output points. This indicates a high risk of Cross-Site Scripting (XSS) vulnerabilities, where user-supplied data could be injected and executed within the user's browser. While the plugin includes nonce checks, it completely lacks capability checks, meaning that any functionality exposed, even if not directly from AJAX or REST API, could be accessible by users without proper authorization. The plugin's vulnerability history is clean, with no known CVEs, which is a positive indicator of past development practices. Nevertheless, the identified output escaping issue represents a critical oversight that needs immediate attention. The overall assessment is that the plugin has a strong foundation in preventing common server-side attacks but is critically vulnerable to client-side XSS due to inadequate output sanitization.

Key Concerns

  • All outputs are unescaped (XSS risk)
  • No capability checks implemented
Vulnerabilities
None known

Random Posts Security Vulnerabilities

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

Random Posts Code Analysis

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

SQL Query Safety

100% prepared1 total queries

Output Escaping

0% escaped14 total outputs
Attack Surface

Random Posts Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 4
actionadmin_menurandom-posts-admin.php:9
actionin_admin_footerrandom-posts-admin.php:27
actionplugins_loadedrandom-posts.php:220
actioninitrandom-posts.php:237
Maintenance & Trust

Random Posts Maintenance & Trust

Maintenance Signals

WordPress version tested2.6.2
Last updatedNov 28, 2017
PHP min version
Downloads72K

Community Trust

Rating40/100
Number of ratings1
Active installs400
Developer Profile

Random Posts Developer Profile

RobMarsh

5 plugins · 2K total installs

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

How We Detect Random Posts

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/random-posts-plugin/random-posts.css/wp-content/plugins/random-posts-plugin/random-posts.js
Script Paths
/wp-content/plugins/random-posts-plugin/random-posts.js
Version Parameters
random-posts-plugin/random-posts.css?ver=random-posts-plugin/random-posts.js?ver=

HTML / DOM Fingerprints

HTML Comments
<!-- Random Posts took %.3f ms -->
Data Attributes
data-optionsdata-target
JS Globals
RandomPosts
Shortcode Output
<li>{link}</li>
FAQ

Frequently Asked Questions about Random Posts