Twig is a template language for PHP. From 3.9.0 until 3.26.0, templatefromstring() compiles an inner template under a synthesized string_template<hash> name that can fall outside a SourcePolicyInterface sandbox decision, allowing a sandboxed template that can call templatefromstring and include to render an inner template without security policy enforcement. This issue is fixed in version 3.26.0.
{
"cwe_ids": [
"CWE-693"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46634.json",
"cna_assigner": "GitHub_M"
}