Missing Output Escaping in Twig Template Language for PHP
CVE-2025-24374

4.3MEDIUM

Key Information:

Vendor

TwigPHP

Status
Vendor
CVE Published:
29 January 2025

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

References

CVSS V3.1

Score:
4.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.