Security Flaw in Twig PHP Template Engine Affects Output Safety
CVE-2026-46637

5.1MEDIUM

Key Information:

Vendor

TwigPHP

Vendor
CVE Published:
14 July 2026

What is CVE-2026-46637?

Prior to version 3.26.0, Twig, a popular template engine for PHP, registered several filters in twig/markdown-extra and twig/cssinliner-extra as safe, treating unescaped output as secure in contexts such as HTML, JavaScript, and CSS. This oversight can potentially lead to exploitation through Cross-Site Scripting (XSS) attacks if untrusted data is processed. The issue has been addressed in version 3.26.0, ensuring that proper output escaping protocols are adhered to, thereby enhancing application security.

Affected Version(s)

cssinliner-extra < 3.26.0

markdown-extra < 3.26.0

Twig < 3.26.0

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.