CVE-2026-46637

Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
Configurations

Configuration 1 (hide)

cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*

History

15 Jul 2026, 20:18

Type Values Removed Values Added
First Time Symfony
Symfony twig
CWE CWE-79
CPE cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.4
References () https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299 - () https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299 - Patch
References () https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a - () https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a - Patch
References () https://github.com/twigphp/Twig/releases/tag/v3.26.0 - () https://github.com/twigphp/Twig/releases/tag/v3.26.0 - Release Notes
References () https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3 - () https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3 - Vendor Advisory

14 Jul 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-14 22:16

Updated : 2026-07-16 16:19


NVD link : CVE-2026-46637

Mitre link : CVE-2026-46637

CVE.ORG link : CVE-2026-46637


JSON object : View

Products Affected

symfony

  • twig
CWE
CWE-116

Improper Encoding or Escaping of Output

CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')