Skip to content
Laskyr

Plugins · custom-field-template · data as of 2026-11-04

Is Custom Field Template safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (2.8.1)

As of 2026-11-04. 15 issues are on record for older versions; version 2.8 or newer fixes all of them that state a fix.

Latest version
2.8.1
Last updated
2026-08-11
Active installs
30,000+
Known issues on record
15
Unpatched in latest
0
Tested up to WP
7.0.8

The Custom Field Template plugin extends the functionality of custom fields. — by Hiroaki Miyashita

What to do

  1. Update to the latest version (2.8.1). Anything older than 2.8 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.

With WP-CLI: wp plugin get custom-field-template --field=version shows what you run; wp plugin update custom-field-template updates it.

Check your version

Known vulnerabilities

15 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.

medium 4.3 CVE-2026-12995 · published 2026-09-22

Missing authorization check in Custom Field Template (2.7.8 and older)

Affected
2.7.8 and older
Fixed in
2.8 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.7.8 via the edit_meta_value due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with contributor-level access and above, to delete arbitrary media attachments site-wide by supplying any numeric attachment ID in the file-field parameter alongside the corresponding delete flag, causing content loss and broken pages. Exploitation requires that the attacker's post is governed by a Custom Field Template containing at least one file-type field with the mediaRemove option not enabled, which is the default configuration for file fields.

NVD CVE-2026-12995Wordfence advisoryCode change (fix)Plugin source

medium 6.5 CVE-2026-9855 · published 2026-09-19

SQL injection in Custom Field Template (2.7.8 and older)

Affected
2.7.8 and older
Fixed in
2.8 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to generic SQL Injection via the 'post_ID' parameter in all versions up to, and including, 2.7.8 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The capability check via current_user_can('edit_post', $id) is bypassable because WordPress internally casts $id to an integer for the permission evaluation while the full unsanitized string is preserved and passed to the SQL sink, and a valid nonce — which is also required — can be legitimately obtained by any Contributor-level user from the post edit screen.

NVD CVE-2026-9855Wordfence advisoryCode change (fix)Plugin source

high 8.5 CVE-2026-57687 · published 2026-07-02

SQL injection in Custom Field Template (2.7.8 and older)

Affected
2.7.8 and older
Fixed in
2.8
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Contributor SQL Injection in Custom Field Template <= 2.7.8 versions.

NVD CVE-2026-57687Patchstack advisory

medium 6.5 CVE-2025-68607 · published 2025-12-29

Stored cross-site scripting (XSS) in Custom Field Template (2.7.7 and older)

Affected
2.7.7 and older
Fixed in
2.7.8 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber); someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Hiroaki Miyashita Custom Field Template custom-field-template allows Stored XSS.This issue affects Custom Field Template: from n/a through <= 2.7.7.

NVD CVE-2025-68607Patchstack advisory

medium 4.3 CVE-2025-63058 · published 2025-12-09

Information disclosure in Custom Field Template (2.7.6 and older)

Affected
2.7.6 and older
Fixed in
2.7.7
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Exposure of Sensitive System Information to an Unauthorized Control Sphere vulnerability in Hiroaki Miyashita Custom Field Template custom-field-template allows Retrieve Embedded Sensitive Data.This issue affects Custom Field Template: from n/a through <= 2.7.6.

NVD CVE-2025-63058Patchstack advisory

medium 5.4 CVE-2024-44062 · published 2024-09-15

Stored cross-site scripting (XSS) in Custom Field Template (2.6.5 and older)

Affected
2.6.5 and older
Fixed in
2.6.6 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber); someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Hiroaki Miyashita Custom Field Template allows Stored XSS.This issue affects Custom Field Template: from n/a through 2.6.5.

NVD CVE-2024-44062Patchstack advisory

medium 5.4 CVE-2023-6745 · published 2024-06-11

Stored cross-site scripting (XSS) in Custom Field Template (2.6.1 and older)

Affected
2.6.1 and older
Fixed in
2.6.2 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber); someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'cpt' shortcode in all versions up to, and including, 2.6.1 due to insufficient input sanitization and output escaping on user supplied post meta. This makes it possible for authenticated attackers with contributor-level and above permissions to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2023-6745Wordfence advisoryCode change (fix)

medium 4.3 CVE-2023-6748 · published 2024-06-11

Information disclosure in Custom Field Template (2.6.1 and older)

Affected
2.6.1 and older
Fixed in
2.6.2 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 2.6.1 via the 'cft' shortcode. This makes it possible for authenticated attackers with contributor access and above, to extract sensitive data including arbitrary post metadata.

NVD CVE-2023-6748Wordfence advisoryCode change (fix)

medium 5.4 CVE-2024-0627 · published 2024-06-11

Stored cross-site scripting (XSS) in Custom Field Template (2.6.1 and older)

Affected
2.6.1 and older
Fixed in
2.6.2 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber); someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's custom field name column in all versions up to, and including, 2.6.1 due to insufficient input sanitization and output escaping on user supplied custom fields. This makes it possible for authenticated attackers with contributor-level and above permissions to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2024-0627Wordfence advisoryCode change (fix)

medium 4.8 CVE-2024-0653 · published 2024-06-11

Stored cross-site scripting (XSS) in Custom Field Template (2.6.1 and older)

Affected
2.6.1 and older
Fixed in
2.6.2 *
Access needed (per CVSS)
Needs an admin-level account; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 2.6.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

NVD CVE-2024-0653Wordfence advisoryCode change (fix)

medium 6.5 CVE-2024-25919 · published 2024-03-15

Stored cross-site scripting (XSS) in Custom Field Template (2.6 and older)

Affected
2.6 and older
Fixed in
2.6.1
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber); someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Hiroaki Miyashita Custom Field Template allows Stored XSS.This issue affects Custom Field Template: from n/a through 2.6.

NVD CVE-2024-25919Patchstack advisory

medium 6.1 CVE-2023-38392 · published 2023-08-07

Reflected cross-site scripting (XSS) in Custom Field Template (2.5.9 and older)

Affected
2.5.9 and older
Fixed in
2.6.0
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Unauth. Reflected Cross-Site Scripting (XSS) vulnerability in Hiroaki Miyashita Custom Field Template plugin <= 2.5.9 versions.

NVD CVE-2023-38392Patchstack advisory

high 8.8 CVE-2023-22695 · published 2023-07-10

Cross-site request forgery (CSRF) in Custom Field Template (2.5.8 and older)

Affected
2.5.8 and older
Fixed in
2.5.9
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Cross-Site Request Forgery (CSRF) vulnerability in Hiroaki Miyashita Custom Field Template plugin <= 2.5.8 versions.

NVD CVE-2023-22695Patchstack advisory

medium 4.3 CVE-2020-36742 · published 2023-07-01

Cross-site request forgery (CSRF) in Custom Field Template (older than 2.5.2)

Affected
older than 2.5.2
Fixed in
2.5.2
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Custom Field Template plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 2.5.1. This is due to missing or incorrect nonce validation on the edit_meta_value() function. This makes it possible for unauthenticated attackers to edit meta field values via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

NVD CVE-2020-36742Wordfence advisoryCode change (fix)blog.nintechnet.comblog.nintechnet.comblog.nintechnet.comblog.nintechnet.com

high 7.2 CVE-2022-4324 · published 2023-01-02

PHP object injection in Custom Field Template (older than 2.5.8)

Affected
older than 2.5.8
Fixed in
2.5.8
Access needed (per CVSS)
Needs an admin-level account
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Custom Field Template WordPress plugin before 2.5.8 unserialises the content of an imported file, which could lead to PHP object injections issues when a high privilege user import (intentionally or not) a malicious Customizer Styling file and a suitable gadget chain is present on the blog.

NVD CVE-2022-4324WPScan advisory

Recent activity

Browse vulnerabilities

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
Custom Field Template vulnerability status badge
<a href="https://laskyr.com/plugins/custom-field-template"><img src="https://laskyr.com/plugins/custom-field-template/badge.svg" alt="Custom Field Template vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit