Related Post Shortcode Security & Risk Analysis

wordpress.org/plugins/related-post-shortcode

A simple WP plugin that add a TinyMCE button and popin to easily add a related post section in a post.

30 active installs v1.2 PHP + WP 3.0.1+ Updated Mar 21, 2017
contentenguerranwsrelated-postshortcodeshortcode-generator
64
C · Use Caution
CVEs total1
Unpatched1
Last CVEJan 18, 2025
Safety Verdict

Is Related Post Shortcode Safe to Use in 2026?

Use With Caution

Score 64/100

Related Post Shortcode has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

1 known CVE 1 unpatched Last CVE: Jan 18, 2025Updated 9yr ago
Risk Assessment

The "related-post-shortcode" v1.2 plugin exhibits a concerning security posture, primarily due to a significant number of unprotected entry points. While it demonstrates good practices in SQL query handling with 100% prepared statements and avoids dangerous functions and file operations, these strengths are overshadowed by security oversights. The static analysis reveals 6 AJAX handlers without any authentication checks, creating a large attack surface vulnerable to unauthorized access and manipulation. Furthermore, only 43% of output is properly escaped, indicating a potential for Cross-Site Scripting (XSS) vulnerabilities. The plugin's vulnerability history is also a significant concern, with one unpatched medium-severity CVE related to XSS, last recorded in early 2025. This suggests a recurring issue with input sanitization or output escaping, which has not been adequately addressed in this version. The lack of nonce checks on AJAX handlers further exacerbates the risk of CSRF attacks. In conclusion, while the plugin has some positive security aspects, the numerous unprotected AJAX endpoints, insufficient output escaping, and a recent XSS vulnerability history present substantial risks that require immediate attention.

Key Concerns

  • Unprotected AJAX handlers
  • Insufficient output escaping
  • Unpatched medium severity CVE
  • Missing nonce checks on AJAX handlers
  • Limited capability checks
Vulnerabilities
1

Related Post Shortcode Security Vulnerabilities

CVEs by Year

1 CVE in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2025-22276medium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Related Post Shortcode <= 1.2 - Authenticated (Administrator+) Stored Cross-Site Scripting

Jan 18, 2025Unpatched
Code Analysis
Analyzed Mar 16, 2026

Related Post Shortcode Code Analysis

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

Output Escaping

43% escaped7 total outputs
Attack Surface
6 unprotected

Related Post Shortcode Attack Surface

Entry Points7
Unprotected6

AJAX Handlers 6

authwp_ajax_related_post_shortcode_getPostsIdsrelated-post-shortcode.php:23
noprivwp_ajax_related_post_shortcode_getPostsIdsrelated-post-shortcode.php:24
authwp_ajax_related_post_shortcode_getPluginUrlrelated-post-shortcode.php:25
noprivwp_ajax_related_post_shortcode_getPluginUrlrelated-post-shortcode.php:26
authwp_ajax_related_post_shortcode_getTransFieldsrelated-post-shortcode.php:27
noprivwp_ajax_related_post_shortcode_getTransFieldsrelated-post-shortcode.php:28

Shortcodes 1

[related-post] related-post-shortcode.php:20
WordPress Hooks 8
actionadmin_initrelated-post-shortcode.php:17
actionafter_setup_themerelated-post-shortcode.php:18
actionadmin_headrelated-post-shortcode.php:19
actionadmin_initrelated-post-shortcode.php:21
actionadmin_menurelated-post-shortcode.php:22
actionwp_enqueue_scriptsrelated-post-shortcode.php:30
filtermce_buttonsrelated-post-shortcode.php:42
filtermce_external_pluginsrelated-post-shortcode.php:43
Maintenance & Trust

Related Post Shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested4.7.32
Last updatedMar 21, 2017
PHP min version
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs30
Developer Profile

Related Post Shortcode Developer Profile

enguerranws

3 plugins · 140 total installs

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

How We Detect Related Post Shortcode

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/related-post-shortcode/styles.css/wp-content/plugins/related-post-shortcode/related-post-shortcode.css/wp-content/plugins/related-post-shortcode/related-post-shortcode.js
Script Paths
/wp-content/plugins/related-post-shortcode/related-post-shortcode.js
Version Parameters
related-post-shortcode/related-post-shortcode.css?v=2

HTML / DOM Fingerprints

CSS Classes
rps-containerrps-thumbrps-descrps-container-titlerps-titlerps-excerpt
JS Globals
related_post_shortcode_buttonrelated_post_shortcode_add_buttonrelated_post_shortcode_register_buttonrelated_post_shortcode_options_pagerelated_post_shortcode_options_page_renderrelated_post_shortcode_register_options+5 more
REST Endpoints
/wp-json/related-post-shortcode/v1/getPostsIds/wp-json/related-post-shortcode/v1/getPluginUrl/wp-json/related-post-shortcode/v1/getTransFields
Shortcode Output
<div class="rps-container" ><a class="rps-thumb" href=""></a>
FAQ

Frequently Asked Questions about Related Post Shortcode