Live threats

All CVEs / Symfony

CVE-2026-47732Symfony Twig

High 7.1

Priority
43
CVSS 4.0
7.1
EPSS
—
Auth required
Yes
Published
Jul 14, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-863
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed template author to invoke __toString() on objects reachable in the render context through conditional expressions, comparison operators, tests, template-loading tags, dynamic attribute names, spread arguments, the do tag, and the .. range operator. This issue is fixed in version 3.26.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twig.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist twig/twig < 3.26.0 3.26.0 composer require "twig/twig:^3.26.0"

Per OSV / GitHub Advisories (GHSA-pr2w-4gpj-cpq4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
symfonytwig< 3.26.0

Official sources

References

Links published by the sources. Open them with care.