WordPress · Custom Field Template · CVE-2024-0627
**Name of the Vulnerable Software and Affected Versions**
Custom Field Template plugin for WordPress versions up to, and including, 2.6.1
**Description**
The issue is related to Stored Cross-Site Scripting via the plugin's custom field name column due to insufficient input sanitization and output escaping on user-supplied custom fields. This allows 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.
**Recommendations**
For versions up to, and including, 2.6.1, update to a version later than 2.6.1 to resolve the issue. As a temporary workaround, consider restricting access to the custom field name column to minimize the risk of exploitation. Additionally, restrict permissions to prevent contributors and above from injecting arbitrary web scripts.