Skip to main content

Improper Neutralization of Special Elements Used in a Template Engine

CVE-2026-28784

Severity High
Score 8.6/10

Summary

Craft is a content management system. Prior to versions 4.17.0-beta.1 and 5.X prior to 5.9.0-beta1, it is possible to craft a malicious payload using the Twig "map" filter in text fields that accept Twig input under Settings in the Craft control panel or when using the System Messages utility, potentially leading to remote code execution. Exploitation requires administrator access to the Craft control panel with "allowAdminChanges" enabled, or a non-administrator account with "allowAdminChanges" disabled but with access to the System Messages utility. This configuration is not recommended for production environments. This issue is fixed in versions 5.9.0-beta.1 and 4.17.0-beta.1. Users should upgrade to these versions to mitigate the vulnerability.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • HIGH
  • HIGH
  • HIGH

CWE-1336 - Improper Neutralization of Special Elements Used in a Template Engine

The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Advisory Timeline

  • Published