Improper Neutralization of Special Elements Used in a Template Engine in Grav CMS - #VU130083
Published: May 5, 2026
Grav CMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper neutralization of special elements in output used by a downstream component in cleanDangerousTwig() when filtering attacker-controlled Twig templates. A remote user can inject a crafted Twig template that bypasses the blocklist to execute arbitrary code.
The blocklist omits twig_array_reduce and dangerous file functions such as file_get_contents and fwrite.