Custom Post Type Images Security & Risk Analysis

wordpress.org/plugins/custom-post-types-image

Upload and attach a 'featured' image to any registered custom post types and call it via shortcode or template tag in your theme.

10 active installs v0.5 PHP + WP 3+ Updated Jan 18, 2012
cpt-imagescustom-post-typecustom-post-type-archivesimage-attachmentspost-type-images
63
C · Use Caution
CVEs total1
Unpatched1
Last CVESep 22, 2025
Download
Safety Verdict

Is Custom Post Type Images Safe to Use in 2026?

Use With Caution

Score 63/100

Custom Post Type Images has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

1 known CVE 1 unpatched Last CVE: Sep 22, 2025Updated 14yr ago
Risk Assessment

The 'custom-post-types-image' plugin v0.5 presents a mixed security posture. While it excels in avoiding dangerous functions and utilizing prepared statements for SQL queries, significant concerns arise from its output escaping and vulnerability history. The complete lack of output escaping across all identified output points is a major red flag, potentially leading to cross-site scripting (XSS) vulnerabilities if user-supplied data is ever outputted without sanitization. Additionally, the presence of an unpatched medium severity vulnerability, specifically a Cross-Site Request Forgery (CSRF), from 2025 indicates a history of security weaknesses that haven't been fully addressed.

The static analysis reveals an attack surface primarily composed of a single shortcode, with no identified unprotected entry points. Taint analysis, though limited in scope, did identify one flow with an unsanitized path, which is concerning. The absence of nonce checks and capability checks, combined with the lack of output escaping, suggests a general disregard for common WordPress security practices. This, coupled with the recurring CSRF vulnerability type in its history, points to potential weaknesses in input validation and authorization mechanisms.

In conclusion, while the plugin demonstrates some good security practices like prepared SQL statements, the severe deficiency in output escaping and the unpatched historical vulnerability significantly outweigh these strengths. The plugin should be treated with caution, and users should be aware of the potential for XSS and CSRF attacks until these issues are rectified.

Key Concerns

  • Unpatched medium severity CVE
  • 100% of outputs unescaped
  • Flows with unsanitized paths
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
1

Custom Post Type Images Security Vulnerabilities

CVEs by Year

1 CVE in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2025-58255medium · 4.3Cross-Site Request Forgery (CSRF)

Custom Post Type Images <= 0.5 - Cross-Site Request Forgery

Sep 22, 2025Unpatched
Code Analysis
Analyzed Mar 16, 2026

Custom Post Type Images Code Analysis

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

Output Escaping

0% escaped6 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

1 flows1 with unsanitized paths
<cptImages_admin> (cptImages_admin.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Custom Post Type Images Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[cptImage] cptImages.php:96
WordPress Hooks 4
actionadmin_initcptImages.php:39
actionadmin_menucptImages.php:46
actionadmin_headcptImages.php:63
filterplugin_row_metacptImages.php:73
Maintenance & Trust

Custom Post Type Images Maintenance & Trust

Maintenance Signals

WordPress version tested3.3.2
Last updatedJan 18, 2012
PHP min version
Downloads3K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

Custom Post Type Images Developer Profile

yonisink

1 plugin · 10 total installs

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

How We Detect Custom Post Type Images

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-image/css/cptImages_admin.css/wp-content/plugins/custom-post-types-image/js/cptImages_script.js
Script Paths
/wp-content/plugins/custom-post-types-image/js/cptImages_script.js

HTML / DOM Fingerprints

CSS Classes
cpt_archive_image
Data Attributes
id="icon-options-general"id="ptImages"class="metabox-holder"id="post-body"id="post-body-content"class="has-sidebar-content"+1 more
Shortcode Output
[cptImage]
FAQ

Frequently Asked Questions about Custom Post Type Images