{"id":"CVE-2026-46637","published":"2026-07-14T21:25:20Z","modified":"2026-07-16T15:05:57Z","title":"Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`","vendor":"twigphp","product":"Twig","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00305,"percentile":0.23882,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299","tags":["x_refsource_MISC"]},{"url":"https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a","tags":["x_refsource_MISC"]},{"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":4.78},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"twigphp","affectedVersions":[{"vendor":"twigphp","product":"Twig","versions":["< 3.26.0"]},{"vendor":"twig","product":"cssinliner-extra","versions":["< 3.26.0"]},{"vendor":"twig","product":"markdown-extra","versions":["< 3.26.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-16T15:05:39.751817Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"twig/markdown-extra","vulnerableRanges":["<3.26.0"],"patched":["3.26.0"],"from":["GHSA-jv8m-2544-3pg3"],"provenance":"source"},{"ecosystem":"Packagist","package":"twig/cssinliner-extra","vulnerableRanges":["<3.26.0"],"patched":["3.26.0"],"from":["GHSA-jv8m-2544-3pg3"],"provenance":"source"}],"summary":{"text":"The Twig template engine's twig/markdown-extra and twig/cssinliner-extra packages register several filters with is_safe => ['all'], so their output is treated as safe in HTML, JavaScript, CSS and URL contexts without proper escaping. An attacker who can get content into a template rendered through these filters, and who needs low privileges and user interaction, can cause unescaped output to be trusted in those contexts, with a limited loss of confidentiality or integrity and no direct availability impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:35Z"},"euvd":{"id":"EUVD-2026-44509","exploited":false,"provenance":"source"}}