{"id":"CVE-2026-46628","aliases":["GHSA-4j38-f5cw-54h7"],"url":"https://o3.security/vulnerability/CVE-2026-46628","summary":"Twig: The `spaceless` filter implicitly marks its output as safe","details":"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.","published":"2026-07-14T21:19:54.501Z","modified":"2026-08-12T03:51:08.360862744Z","cvss":null,"epss":{"score":0.00169,"percentile":0.06676,"asOf":"2026-08-18"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"twig/twig","fixedVersion":"3.26.0"}],"fix":{"url":"https://github.com/twigphp/Twig/commit/3190b9ae12614dfd58cc5d8f394bac4708b17913","label":"twigphp/Twig@3190b9a"},"references":[{"type":"WEB","url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46628.json"},{"type":"ADVISORY","url":"https://github.com/twigphp/Twig/security/advisories/GHSA-4j38-f5cw-54h7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46628"},{"type":"FIX","url":"https://github.com/twigphp/Twig/commit/3190b9ae12614dfd58cc5d8f394bac4708b17913"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:08.360862744Z"}}