Custom Post Types Relationships (CPTR) Security & Risk Analysis

wordpress.org/plugins/custom-post-types-relationships-cptr

This plugin will let you create custom post relationships among posts, pages and custom post types.

300 active installs v2.5.1 PHP + WP 4.8+ Updated Jun 13, 2022
custom-related-postscustom-relationspost-relationshipsrelatedrelated-posts
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Custom Post Types Relationships (CPTR) Safe to Use in 2026?

Generally Safe

Score 85/100

Custom Post Types Relationships (CPTR) has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3yr ago
Risk Assessment

The plugin "custom-post-types-relationships-cptr" v2.5.1 demonstrates generally good security practices, particularly in its handling of SQL queries and output escaping. The use of prepared statements for all SQL queries and a high percentage of properly escaped outputs are significant strengths. The absence of known vulnerabilities in its history further suggests a robust development and maintenance process. However, a notable concern is the presence of one unprotected AJAX handler, which represents a direct entry point that could be exploited if not properly secured within the handler itself. This single unprotected entry point is the primary security weakness identified in the static analysis.

While the plugin has a small attack surface with only one unprotected entry point, this unprotected AJAX handler is a critical flaw that warrants attention. The lack of known CVEs and its clean vulnerability history are positive indicators, but they do not mitigate the risk posed by the identified unprotected AJAX endpoint. The plugin's overall security posture is good due to its strong adherence to secure coding practices in other areas, but the unprotected AJAX handler introduces a significant risk that could be leveraged for unauthorized actions or information disclosure if exploited. Therefore, immediate attention should be paid to securing this entry point.

Key Concerns

  • Unprotected AJAX handler found
Vulnerabilities
None known

Custom Post Types Relationships (CPTR) Security Vulnerabilities

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

Custom Post Types Relationships (CPTR) Code Analysis

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

SQL Query Safety

100% prepared4 total queries

Output Escaping

92% escaped107 total outputs
Data Flows
All sanitized

Data Flow Analysis

1 flows
<cptr> (cptr.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
1 unprotected

Custom Post Types Relationships (CPTR) Attack Surface

Entry Points2
Unprotected1

AJAX Handlers 1

authwp_ajax_cptr-catscptr.php:645

Shortcodes 1

[cptr] cptr.php:534
WordPress Hooks 6
actionadmin_menucptr.php:75
actionadmin_initcptr.php:76
actionadmin_menucptr.php:141
actioninitcptr.php:169
actionadmin_menucptr.php:644
actionsave_postcptr.php:646
Maintenance & Trust

Custom Post Types Relationships (CPTR) Maintenance & Trust

Maintenance Signals

WordPress version tested6.0.11
Last updatedJun 13, 2022
PHP min version
Downloads14K

Community Trust

Rating100/100
Number of ratings2
Active installs300
Developer Profile

Custom Post Types Relationships (CPTR) Developer Profile

Anastis Sourgoutsidis

3 plugins · 4K total installs

97
trust score
Avg Security Score
95/100
Avg Patch Time
1 days
View full developer profile
Detection Fingerprints

How We Detect Custom Post Types Relationships (CPTR)

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/custom-post-types-relationships-cptr/css/admin.css/wp-content/plugins/custom-post-types-relationships-cptr/css/post-edit.css/wp-content/plugins/custom-post-types-relationships-cptr/js/post-edit-scripts.js/wp-content/plugins/custom-post-types-relationships-cptr/css/cptr.css
Script Paths
/wp-content/plugins/custom-post-types-relationships-cptr/js/post-edit-scripts.js
Version Parameters
custom-post-types-relationships-cptr/css/admin.css?ver=custom-post-types-relationships-cptr/css/post-edit.css?ver=custom-post-types-relationships-cptr/js/post-edit-scripts.js?ver=custom-post-types-relationships-cptr/css/cptr.css?ver=

HTML / DOM Fingerprints

CSS Classes
cptr-meta-box
Data Attributes
id="cat-selector"name="howmany"
JS Globals
cptrSettings
FAQ

Frequently Asked Questions about Custom Post Types Relationships (CPTR)