Improper Neutralization of Special Elements in Output Used by a Downstream Component in Craft CMS - CVE-2026-25498
Published: April 17, 2026
Craft CMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper input sanitization in assembleLayoutFromPost() in src/services/Fields.php when processing the user-supplied fieldLayout POST parameter and passing it to Craft::createObject(). A remote user can submit a malicious behavior configuration via the "as " syntax to execute arbitrary code.
The issue affects admin panel endpoints that call assembleLayoutFromPost(), and exploitation requires admin-level access.