Twig Template Engine Vulnerability Allows Sandbox Policy Bypass
A critical vulnerability in Twig versions 3.9.0 through 3.25.0 allows sandboxed templates to bypass security policy enforcement.
A critical security vulnerability, identified as CVE-2026-46634, has been discovered in the Twig template language for PHP. The issue stems from how the template_from_string() function compiles inner templates, which can cause them to fall outside the scope of the SourcePolicyInterface sandbox. This flaw allows a sandboxed template to execute and render inner templates without proper security policy enforcement.
Assigned a CVSS score of 9.8, the vulnerability is classified as critical. It potentially allows for full impact on confidentiality, integrity, and availability. The flaw affects all versions of Twig from 3.9.0 up to and including 3.25.0.
Users are advised to update their Twig installations to version 3.26.0 or later, which contains the official fix for this issue. Further details can be found in the official Twig security advisory and GitHub release notes.
Sources
- NVD Original source
Continue Reading
A hands-on way to gauge AI ransomware risk
OWASP volunteers released RAID-AI, a free manual self-assessment that maps AI controls to NIST and CISA frameworks.
AWS AgentCore Flaw Let One Prompt Hijack All Agents
Researchers say a single chat prompt could extract cloud credentials and let an attacker take over every AgentCore agent in an AWS account and region.
Lightwell Uncovers 400+ Java Library Flaws
IBM and Red Hat's Lightwell project has identified over 400 novel vulnerabilities in Java libraries, launching a clearinghouse service for customers to submit code for review.