Vulnerability

CVE-2026-48807

highCVSS 4.0 7.1Published 14 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Symfony twig

Weakness type

References

  • github.com /twigphp/Twig/releases/tag/v3.27.0
  • github.com /twigphp/Twig/security/advisories/GHSA-8x9c-rmqh-456c

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning