Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized __string_template__<hash> name that can fall outside a SourcePolicy…
- CVSS
- 9.8Critical
- Chance of exploitation (EPSS)
- 0.62%
- Published
- Jul 14, 2026
- In the news
- Not yet
What to do
A critical security flaw in Symfony Twig that can be attacked over the network without logging in. No attacks are reported yet, but patch it soon.
Action: Apply the vendor's update or follow its advisory.
Affected versions
- Twig
- >= 3.9.0, < 3.26.0
Description
Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() 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 template_from_string and include to render an inner template without security policy enforcement. This issue is fixed in version 3.26.0.
Affected products
Get alerts for these →Timeline 3
Latest change: Tenable Cloud Security plugin 480755: Echo: matomo-5: security update to 5.14.3+e2 (Nov 18, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Nov 19, 2026
Tue, Jul 14, 2026
- CVECVE-2026-46634 published (CVSS 9.8)CVE Program · 22:16 UTC
References 3
- github.com Patch /twigphp/Twig/commit/1cde8f2b62463f85d47995fc25f8241cb409d915
- github.com Vendor Advisory /twigphp/Twig/security/advisories/GHSA-24x9-r6q4-q93w
- github.com /twigphp/Twig/releases/tag/v3.26.0