SA-CONTRIB-2026-225: Critical severity drupal/custom_formatters vulnerability
The Custom Formatters module allows users to easily create custom Field Formatters through an admin UI without writing a custom module. The PHP formatter engine runs eval() to execute user-provided PHP code and allows arbitrary PHP execution on the site. The permissions UI gives no indication about this behavior.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
drupal/custom_formattersto a version that resolves this vulnerability.Fixed in 4.2.1