Vulnerability in Symfony Twig
CVE-2026-46628
Twig is a template language for PHP. Prior to 3.26.0, the deprecated spaceless filter is registered as safe for HTML, causing Twig autoescaping to emit attacker-controlled markup unescaped when spaceless is applied to untrusted input. This issue is fixed in version 3.26.0.
EPSS: 0.003 (21.6th percentile) — read the EPSS interpretation.
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
- Symfony Twig
- Twigphp Twig — versions < 3.26.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (x_refsource_MISC, Release Notes)
Frequently asked questions
- What is CVE-2026-46628?
- CVE-2026-46628 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-46628?
- Medium severity. CVSS v3 base score is 5.4 out of 10.