Custom Post Type Privacy Security & Risk Analysis

wordpress.org/plugins/custom-post-type-privacy

Stable Tag 0.3 Custom Post Type Privacy allows WordPress authors to grant access to users and groups of users across all posts, pages and custom post …

10 active installs v0.3 PHP + WP 3.0+ Updated May 8, 2012
bbpresscustom-post-typespagespostsusers
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Custom Post Type Privacy Safe to Use in 2026?

Generally Safe

Score 85/100

Custom Post Type Privacy 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 custom-post-type-privacy plugin v0.3 presents a mixed security profile. On one hand, the absence of known CVEs and a clean vulnerability history suggest a generally stable and well-maintained codebase. The static analysis also indicates a limited attack surface with no AJAX handlers, REST API routes, shortcodes, or cron events, all of which are positive indicators. Furthermore, the presence of capability checks is a good practice for restricting access to sensitive functionality.

However, significant concerns arise from the code analysis. A substantial percentage of SQL queries (82%) are not using prepared statements, which is a serious risk for SQL injection vulnerabilities. The output escaping is also very poor, with only 8% of outputs properly escaped, creating a high risk of Cross-Site Scripting (XSS) vulnerabilities. The taint analysis reveals 5 flows with unsanitized paths, indicating potential vulnerabilities that could be exploited if an attacker can manipulate input that reaches these un-sanitized paths. The complete absence of nonce checks is also a notable weakness, especially given that even with a small attack surface, potential vulnerabilities could be chained.

In conclusion, while the plugin lacks a history of publicly disclosed vulnerabilities and has a small attack surface, the internal code quality raises significant red flags. The heavy reliance on raw SQL queries and insufficient output escaping are critical weaknesses that expose the plugin and, by extension, the WordPress site to substantial risks of data compromise and malicious code execution. The presence of unsanitized taint flows further exacerbates these risks.

Key Concerns

  • High percentage of SQL queries without prepared statements
  • Low percentage of properly escaped output
  • Taint flows with unsanitized paths
  • Zero nonce checks
Vulnerabilities
None known

Custom Post Type Privacy Security Vulnerabilities

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

Custom Post Type Privacy Code Analysis

Dangerous Functions
0
Raw SQL Queries
32
7 prepared
Unescaped Output
133
11 escaped
Nonce Checks
0
Capability Checks
8
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

18% prepared39 total queries

Output Escaping

8% escaped144 total outputs
Data Flows
5 unsanitized

Data Flow Analysis

6 flows5 with unsanitized paths
group_admin_panel (custom-post-type-privacy.php:662)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Custom Post Type Privacy Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 30
actionwp_headcpt-sentry-widgets.php:111
actioncomment_postcpt-sentry-widgets.php:113
actionwp_set_comment_statuscpt-sentry-widgets.php:114
filterthe_postscustom-post-type-privacy.php:127
actionadmin_menucustom-post-type-privacy.php:130
actionsave_postcustom-post-type-privacy.php:149
filterthe_titlecustom-post-type-privacy.php:151
actionuser_registercustom-post-type-privacy.php:152
actiondelete_usercustom-post-type-privacy.php:153
actionadmin_headcustom-post-type-privacy.php:155
filtermanage_posts_columnscustom-post-type-privacy.php:156
filtermanage_pages_columnscustom-post-type-privacy.php:157
filtermanage_users_columnscustom-post-type-privacy.php:158
actionmanage_posts_custom_columncustom-post-type-privacy.php:159
actionmanage_pages_custom_columncustom-post-type-privacy.php:160
filtermanage_users_custom_columncustom-post-type-privacy.php:161
actionsave_postcustom-post-type-privacy.php:162
filterpost_linkcustom-post-type-privacy.php:190
filterpage_linkcustom-post-type-privacy.php:191
filterthe_contentcustom-post-type-privacy.php:192
filtercomments_arraycustom-post-type-privacy.php:193
filterthe_postscustom-post-type-privacy.php:194
filterget_the_excerptcustom-post-type-privacy.php:198
filterposts_wherecustom-post-type-privacy.php:208
filtergetarchives_wherecustom-post-type-privacy.php:209
filteruser_has_capcustom-post-type-privacy.php:210
filterget_tagscustom-post-type-privacy.php:434
actionedit_form_advancedcustom-post-type-privacy.php:537
actionsimple_edit_formcustom-post-type-privacy.php:538
actionedit_page_formcustom-post-type-privacy.php:539
Maintenance & Trust

Custom Post Type Privacy Maintenance & Trust

Maintenance Signals

WordPress version tested3.3.4
Last updatedMay 8, 2012
PHP min version
Downloads4K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

Custom Post Type Privacy Developer Profile

Wikimedia Foundation

2 plugins · 1K total installs

73
trust score
Avg Security Score
92/100
Avg Patch Time
94 days
View full developer profile
Detection Fingerprints

How We Detect Custom Post Type Privacy

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-type-privacy/cpt-sentry-widgets.php/wp-content/plugins/custom-post-type-privacy/css/cpt-sentry.css/wp-content/plugins/custom-post-type-privacy/js/cpt-sentry.js
Script Paths
/wp-content/plugins/custom-post-type-privacy/js/cpt-sentry.js
Version Parameters
custom-post-type-privacy/css/cpt-sentry.css?ver=custom-post-type-privacy/js/cpt-sentry.js?ver=

HTML / DOM Fingerprints

CSS Classes
cpt_sentry_user_groupscpt_sentry_users
HTML Comments
<!-- WP CPT Sentry Database schema versioning --><!-- Name of the Database Table --><!-- For outputting results to the user --><!-- Keys for the Users/posts meta-data -->+25 more
Data Attributes
cpt_sentry_groupscpt_sentry_users
JS Globals
wp_cpt_sentry
FAQ

Frequently Asked Questions about Custom Post Type Privacy