CVE-2026-46639
Description
Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.
How to fix
- symfony twig3.26.0 or later
- twig/twig3.26.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| symfony twig | 3.24.0 ≤ v < 3.26.0 | 3.26.0 |
| twig/twigPackagist | 3.24.0 ≤ v < 3.26.0 | 3.26.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.