Vulnerability

CVE-2026-48806

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, ArrayExpression does not guard dynamic mapping keys that are coerced to strings, allowing PHP to invoke __toString() on a Stringable object used as a mapping key without calling SandboxExtension::ensureToStringAllowed(). 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/commit/9ff41014639ef0e8eb50ac7669191c309d8631…
  • github.com /twigphp/Twig/releases/tag/v3.27.0
  • github.com /twigphp/Twig/security/advisories/GHSA-5v5v-ww74-355v

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

Start scanning