๐Ÿ” CVE Alert

CVE-2026-133767

UNKNOWN 0.0

Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-693 CWE-863
Vendor twig
Product twig/twig
Published Nov 24, 2026
Stay Ahead of the Next One

Get instant alerts for twig twig/twig

Be the first to know when new unknown vulnerabilities affecting twig twig/twig are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

Twig / twig/twig
0 < 3.31.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
symfony.com: https://symfony.com/cve-2026-133767 github.com: https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq github.com: https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3

Credits

Ivan Tse Fabien Potencier