Custom Field Template Security & Risk Analysis

wordpress.org/plugins/custom-field-template

The Custom Field Template plugin extends the functionality of custom fields.

30K active installs v2.7.7 PHP + WP 2.1+ Updated Jan 23, 2026
cftcustom-fieldsfieldsmetatemplate
67
C · Use Caution
CVEs total12
Unpatched1
Last CVEDec 24, 2025
Safety Verdict

Is Custom Field Template Safe to Use in 2026?

Use With Caution

Score 67/100

Custom Field Template has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

12 known CVEs 1 unpatched Last CVE: Dec 24, 2025Updated 2mo ago
Risk Assessment

The "custom-field-template" plugin v2.7.7 exhibits a mixed security posture. On the positive side, the plugin demonstrates good practices by using prepared statements for all SQL queries and incorporating nonce and capability checks. The attack surface, while present with AJAX handlers and shortcodes, is reported as having no unprotected entry points, which is a significant strength. However, the static analysis reveals concerning signals, particularly the presence of a dangerous `unserialize` function without explicit safeguards mentioned, and a worrying 45% of outputs are not properly escaped, suggesting a potential for Cross-Site Scripting vulnerabilities. The taint analysis also indicates flows with unsanitized paths, though no critical or high severity issues were identified here.

The plugin's vulnerability history is a major concern. With 12 known CVEs, a significant number of which are medium severity, and one high-severity unpatched vulnerability, this indicates a pattern of past security weaknesses. The common vulnerability types, including Exposure of Sensitive Information, XSS, Missing Authorization, Deserialization, and CSRF, suggest recurring issues in input validation, authorization, and secure handling of data. The most recent vulnerability recorded in late 2025 further underscores the ongoing nature of these security challenges. While the plugin has strengths in its query handling and some authentication measures, the historical prevalence of vulnerabilities and specific code signals like unescaped output and the use of `unserialize` necessitate caution.

Key Concerns

  • 1 unpatched high severity CVE
  • 11 medium severity CVEs
  • 45% of outputs not properly escaped
  • Presence of 'unserialize' function
  • 3 flows with unsanitized paths
Vulnerabilities
12

Custom Field Template Security Vulnerabilities

CVEs by Year

1 CVE in 2020
2020
1 CVE in 2022
2022
2 CVEs in 2023
2023
6 CVEs in 2024
2024
2 CVEs in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

High
1
Medium
11

12 total CVEs

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

Custom Field Template <= 2.7.5 - Authenticated (Contributor+) Stored Cross-Site Scripting

Dec 24, 2025Unpatched
CVE-2025-63058medium · 4.3Exposure of Sensitive Information to an Unauthorized Actor

Custom Field Template <= 2.7.6 - Authenticated (Subscriber+) Information Exposure

Dec 8, 2025 Patched in 2.7.7 (81d)
CVE-2024-44062medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Field Template <= 2.6.5 - Authenticated (Contributor+) Stored Cross-Site Scripting

Aug 29, 2024 Patched in 2.6.6 (37d)
CVE-2023-6745medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Field Template <= 2.6.1 - Authenticated(Contributor+) Stored Cross-Site Scripting via shortcode

Jun 10, 2024 Patched in 2.6.2 (50d)
CVE-2024-0627medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Field Template <= 2.6.1 - Authenticated(Constibutor+) Stored Cross-Site Scripting via Custom Field Name

Jun 10, 2024 Patched in 2.6.2 (50d)
CVE-2023-6748medium · 4.3Missing Authorization

Custom Field Template <= 2.6.1 - Authenticated(Contributor+) Information Exposure

Jun 10, 2024 Patched in 2.6.2 (50d)
CVE-2024-0653medium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Field Template <= 2.6.1 - Authenticated (Admin+) Stored Cross-Site Scritping

Jun 10, 2024 Patched in 2.6.2 (50d)
CVE-2024-25919medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Field Template <= 2.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via $search_label

Feb 14, 2024 Patched in 2.6.1 (7d)
CVE-2023-38392medium · 6.1Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Custom Field Template <= 2.5.9 - Reflected Cross-Site Scripting

Jul 24, 2023 Patched in 2.6.0 (183d)
CVE-2023-22695medium · 4.3Cross-Site Request Forgery (CSRF)

Custom Field Template <= 2.5.8 - Cross-Site Request Forgery via Plugin Options Update

Mar 21, 2023 Patched in 2.5.9 (308d)
CVE-2022-4324high · 7.2Deserialization of Untrusted Data

Custom Field Template <= 2.5.7 - Authenticated (Administrator+) PHP Object Injection

Dec 9, 2022 Patched in 2.5.8 (410d)
CVE-2020-36742medium · 4.3Cross-Site Request Forgery (CSRF)

Custom Field Template <= 2.5.1 - Cross-Site Request Forgery Bypass

Sep 16, 2020 Patched in 2.5.2 (1224d)
Code Analysis
Analyzed Mar 16, 2026

Custom Field Template Code Analysis

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

Dangerous Functions Found

unserialize$import = @unserialize( trim( $import ), ['allowed_classes' => false]);custom-field-template.php:1251

SQL Query Safety

100% prepared14 total queries

Output Escaping

45% escaped217 total outputs
Data Flows
3 unsanitized

Data Flow Analysis

4 flows3 with unsanitized paths
custom_field_template_check_authentication_key (custom-field-template.php:1083)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Custom Field Template Attack Surface

Entry Points3
Unprotected0

AJAX Handlers 1

authwp_ajax_dismiss_admin_noticescustom-field-template.php:48

Shortcodes 2

[cft] custom-field-template.php:79
[cftsearch] custom-field-template.php:80
WordPress Hooks 39
actionplugins_loadedcustom-field-template.php:41
actioninitcustom-field-template.php:42
actionadmin_initcustom-field-template.php:43
actionadmin_menucustom-field-template.php:44
actionadmin_print_scriptscustom-field-template.php:45
actionadmin_headcustom-field-template.php:46
actionadmin_noticescustom-field-template.php:47
actionadd_meta_boxescustom-field-template.php:49
actionedit_form_advancedcustom-field-template.php:50
actionedit_page_formcustom-field-template.php:51
actionblock_editor_meta_box_hidden_fieldscustom-field-template.php:52
actionsave_postcustom-field-template.php:55
actiondelete_postcustom-field-template.php:58
filtermedia_send_to_editorcustom-field-template.php:60
filterplugin_action_linkscustom-field-template.php:61
filterget_the_excerptcustom-field-template.php:63
filterthe_contentcustom-field-template.php:64
filterthe_content_rsscustom-field-template.php:65
filterattachment_fields_to_editcustom-field-template.php:67
filter_wp_post_revision_fieldscustom-field-template.php:68
filteredit_form_after_titlecustom-field-template.php:69
actionpost_limitscustom-field-template.php:72
filterposts_joincustom-field-template.php:73
filterposts_wherecustom-field-template.php:74
filterposts_orderbycustom-field-template.php:75
filterget_post_metadatacustom-field-template.php:83
filterwp_list_table_class_namecustom-field-template.php:84
actioncustom_field_template_premium_code_updatecustom-field-template.php:85
filterwidget_textcustom-field-template.php:152
actionmanage_posts_custom_columncustom-field-template.php:156
filtermanage_posts_columnscustom-field-template.php:157
actionmanage_pages_custom_columncustom-field-template.php:158
filtermanage_pages_columnscustom-field-template.php:159
actionquick_edit_custom_boxcustom-field-template.php:162
actionsimple_edit_formcustom-field-template.php:166
actionedit_form_advancedcustom-field-template.php:167
actionedit_page_formcustom-field-template.php:168
actionadmin_headcustom-field-template.php:172
actionadmin_footercustom-field-template.php:173

Scheduled Events 1

custom_field_template_premium_code_update
Maintenance & Trust

Custom Field Template Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 23, 2026
PHP min version
Downloads1.2M

Community Trust

Rating80/100
Number of ratings24
Active installs30K
Developer Profile

Custom Field Template Developer Profile

Hiroaki Miyashita

12 plugins · 43K total installs

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

How We Detect Custom Field Template

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/custom-field-template/js/jquery.datetimepicker.js/wp-content/plugins/custom-field-template/js/jquery.dateformat.js/wp-content/plugins/custom-field-template/js/jquery.colorbox-min.js/wp-content/plugins/custom-field-template/js/jquery.min.js/wp-content/plugins/custom-field-template/js/jquery-ui.min.js/wp-content/plugins/custom-field-template/js/select2.min.js/wp-content/plugins/custom-field-template/js/select2_locale_ru.js/wp-content/plugins/custom-field-template/js/select2_locale_es.js+8 more
Script Paths
/wp-content/plugins/custom-field-template/js/jquery.datetimepicker.js/wp-content/plugins/custom-field-template/js/jquery.dateformat.js/wp-content/plugins/custom-field-template/js/jquery.colorbox-min.js/wp-content/plugins/custom-field-template/js/jquery.min.js/wp-content/plugins/custom-field-template/js/jquery-ui.min.js/wp-content/plugins/custom-field-template/js/select2.min.js+5 more
Version Parameters
custom-field-template/js/jquery.datetimepicker.js?ver=custom-field-template/js/jquery.dateformat.js?ver=custom-field-template/js/jquery.colorbox-min.js?ver=custom-field-template/js/jquery.min.js?ver=custom-field-template/js/jquery-ui.min.js?ver=custom-field-template/js/select2.min.js?ver=custom-field-template/js/select2_locale_ru.js?ver=custom-field-template/js/select2_locale_es.js?ver=custom-field-template/js/select2_locale_fr.js?ver=custom-field-template/js/select2_locale_de.js?ver=custom-field-template/js/custom_field_template.js?ver=custom-field-template/css/custom_field_template_admin.css?ver=custom-field-template/css/colorbox.css?ver=custom-field-template/css/select2.css?ver=custom-field-template/css/jquery-ui.css?ver=custom-field-template/css/jquery.datetimepicker.css?ver=

HTML / DOM Fingerprints

CSS Classes
cft_admin_noticescft_admin_add_formcft_field_rowcft_field_labelcft_field_inputcft_field_optionscft_field_delcft_field_id+112 more
HTML Comments
This program is based on the rc:custom_field_gui plugin written by Joshua Sigar.I appreciate your efforts, Joshua.Copyright 2008 - 2026 Hiroaki MiyashitaThis program is free software; you can redistribute it and/or modify+10 more
Data Attributes
data-field-typedata-field-iddata-field-namedata-optionsdata-cft-id
JS Globals
custom_field_template_params
Shortcode Output
[cft][cftsearch]
FAQ

Frequently Asked Questions about Custom Field Template