CVE-2026-48807: Vulnerability in Symfony Twig

Critical. 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.

Packagist, CWE-693, CWE-863

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
0.4 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-8x9c-rmqh-456c
EU ID
EUVD-2026-44514
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-693, CWE-863
Published
30 Jun 2026
Last change
24 Oct 2026
Likelihood rank
Higher than 23 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
Packagist

Affected products

Affected versions and the first fixed release

  • Symfony Twig Before 3.27.0. Fixed in 3.27.0

Affected packages

Vulnerable version ranges and fixed releases

  • twig/twig Packagist, Affected through 3.26.0. Fixed in 3.27.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related