Plugins · custom-field-template · data as of 2026-11-04
Is Custom Field Template safe? Known vulnerabilities and latest version
- 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
- 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”.
- If you cannot update right away, deactivate it until you can.
- Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
- 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Recent activity
- 2026-08-11 — latest release on wordpress.org (2.8.1).
- 2026-09-22 — Missing authorization check disclosed (CVE-2026-12995), fixed in 2.8.
- 2026-09-19 — SQL injection disclosed (CVE-2026-9855), fixed in 2.8.
- 2026-07-02 — SQL injection disclosed (CVE-2026-57687), fixed in 2.8.
Get an email when Custom Field Template has a new vulnerability
Free. We check the CVE feeds every day and email you only when a new issue for Custom Field Template (custom-field-template) is published or a fix ships. Unsubscribe in one click.
Browse vulnerabilities
Types found in this plugin: Cross-site scripting (XSS) (7) · SQL injection (2) · Sensitive data exposure (2) · Cross-site request forgery (CSRF) (2) · Missing authorization (1) · PHP object injection (1)
Where this data comes from
- Version, last update, installs: wordpress.org/plugins/custom-field-template (Plugins API), fetched 2026-11-04.
- Vulnerabilities: NIST National Vulnerability Database (NVD), checked 2026-11-04. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Each record links to its CVE page and to the original advisory (Wordfence, Patchstack or WPScan) where there is one. We only list a CVE here when its references or its advisory name this exact plugin, so a few real issues may be missing; none should be about a different plugin. Spot an error? Email Daniel.
Badge for your site or docs (states facts with a date, not a verdict):
<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>