CVE-2026-46640: Symfony Twig

High severity, CVSS 8.8. EPSS: 0.6% probability of exploitation activity in the next 30 days.

Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to be emitted into the generated template source and executed at template-load time. This issue is fixed in version 3.26.0.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Symfony Twig, from 3.15.0, before 3.26.0: fixed in 3.26.0

Affected products

  • Symfony Twig: from 3.15.0, before 3.26.0 (fixed in 3.26.0)

Affected packages

Published 2026-07-14. Last modified 2026-10-24.