CVE-2026-133767
Description
When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method: {% embed 'leak_' ~ app_secret() %}{% endembed %} Method calls and property reads were not affected, since they're checked at runtime. The sandbox now checks the parent expression of embed like any other expression of the template.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | php-twig |
Affected | — |
| sid | php-twig |
Fixed | 3.31.1-1 |
| forky | php-twig |
Fixed | 3.31.1-1 |
| bookworm | php-twig |
Affected | — |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | twig/twig | >=1.0.0,<2.0.0|>=2.0.0,<3.0.0|>=3.0.0,<3.31.1 | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| twig | twig_twig | {"endExcluding":"3.31.1"} | 3.31.1 |
References
CWEs
CWE-693 CWE-863
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.