ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2026-225

Details

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.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/custom_formatters
All versions before 4.2.1 (fixed in 4.2.1)

References