CVE-2026-48807
Critical
Description
Twig is a template language for PHP. Prior to 3.27.0, the sandbox __toString() checks do not fully cover Traversable values passed to join and replace filters or operands evaluated by the in and not in operators, allowing contained Stringable objects to be coerced to strings without consulting the sandbox policy. This issue is fixed in version 3.27.0.
SeverityCritical
CVSS9.1
Exploit probability—
Product
Symfony Twig
PublishedJul 14, 2026
First seenJul 14, 2026
Weakness typeCWE-693CWE-693CWE-863Incorrect authorization
How to fix
Update
- symfony twig3.27.0 or later
- twig/twig3.27.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| symfony twig | v < 3.27.0 | 3.27.0 |
| twig/twigPackagist | v < 3.27.0 | 3.27.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.