Cross-site scripting in Twig - CVE-2025-24374
Published: January 29, 2025 / Updated: May 20, 2026
Twig
Detailed vulnerability description
The vulnerability allows a remote attacker to modify rendered output.
The vulnerability exists due to improper output neutralization in the null coalesce operator handling when rendering templates that use the ?? operator. A remote attacker can supply a crafted left-side expression value to modify rendered output.
User interaction is required to process the crafted content.