XSS in Symfony Twig

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…

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-46637?
CVE-2026-46637 is a medium-severity vulnerability in Symfony Twig, classified under Improper Encoding or Escaping of Output. CVSS score: 5.4/10. Published 2026-07-14.
How severe is CVE-2026-46637?
Medium severity. CVSS v3 base score is 5.4 out of 10.