ADVISORIES

Vulnerability

CVE-2026-48807

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.

3 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 1Packagist 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2026-48807

    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,…

    CVE-2026-48807 Debian Updated 25 October 2026
  • GHSA-8x9c-rmqh-456c

    Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters

    Moderate CVE-2026-48807 Packagist Updated 10 September 2026
  • UBUNTU-CVE-2026-48807

    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,…

    CVE-2026-48807 Ubuntu Updated 17 October 2026

References