Missing Output Escaping in Twig Template Language for PHP
CVE-2025-24374
4.3MEDIUM
What is CVE-2025-24374?
A security vulnerability in the Twig template engine for PHP exists due to missing output escaping when using the ?? operator. This flaw could allow an attacker to manipulate output data, which might lead to potential XSS (Cross-Site Scripting) attacks. The issue has been addressed in Twig version 3.19.0 and users are advised to update to this version to mitigate risks associated with this vulnerability. For detailed information, refer to the official security advisory and commit history.
Affected Version(s)
Twig >= 3.16.0, < 3.19.0
