CVE-2026-46628Published Jul 14, 2026 · Jul 14Updated Oct 28
Twig: The `spaceless` filter implicitly marks its output as safe
twigphp Twig
Medium5.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| twig/twig Packagist |
|
|
Original description
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.
From the CVE record · GitHub_M