PoC Monitor
← All CVEs
CVE-2026-48807published 14 Jul 2026 21:29 UTCData: JSON · API

Twigphp Twig

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

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by NVD · CWE-693
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

twigphp Twig
  • < 3.27.0

Fixed in 3.27.0

Mitigation

Upgrade Twig to 3.27.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published14 Jul 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.