Improper Neutralization of Special Elements Used in a Template Engine in Craft CMS - #VU159604
Published: November 6, 2026
Vulnerability details
The vulnerability allows a non-administrator control panel user to execute operating system commands with the PHP worker’s privileges.
The vulnerability exists due to reusable signatures for attacker-controlled Twig returnUrl templates generated by Craft CMS’s app/render-elements endpoint with hyperlink=true in a non-modal context. A non-administrator control panel user can supply a signed template as the login action’s redirect parameter and successfully authenticate, triggering unsandboxed template evaluation and command execution.