Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Twig (Packagist twig/twig) versions 3.24.0 up to but not including 3.26.0 are affected. In these versions, the object-destructuring assignment syntax does not enforce the sandbox's property and method policy checks, even when a sandbox is active. An attacker who can write sandboxed Twig templates could read public properties or call public getters on objects passed to the engine, bypassing SecurityPolicy restrictions; the source notes this works where the do tag is allowed. Upgrade to Twig 3.26.0 or later, which forwards the sandbox flag so the policy checks are enforced.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.1 | High | 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0039, the 33rd percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 20 May 2026, 07:44 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 13:58 UTC First seen by agentprime
- 31 Oct 2026, 13:58 UTC Confirmed by OSV