Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.5

CVE-2026-9855: Custom Field Template allows logged‑in contributors to run database commands

CVE-2026-9855 · published 1 month ago
Summary

The Custom Field Template plugin for WordPress (versions up to 2.7.8) lets users with contributor access add their own database commands when they edit a post. This can expose private data stored in the site’s database. Upgrade the plugin to the latest version or restrict contributor permissions until the update is applied.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
hiroaki-miyashita custom field template <= 2.7.8
Original advisory text
Custom Field Template <= 2.7.8 - Authenticated (Contributor+) SQL Injection via 'post_ID' Parameter
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
6.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-89SQL Injection
Timeline
Published19 Sep 2026
Updated4 Nov 2026
First seen19 Sep 2026
Sources
CVE-2026-9855 · NVD
CVE-2026-9855 · MITRE
Track software like this
Free during beta