CVE-2026-46637CWE-116

Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`

Medium · published July 14, 2026

CVSS v4.0
5.1
EPSS
0%
Percentile
22.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.1 · MEDIUM
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
EPSS
0.00305 · 22.1th percentile
Weakness
CWE-116 · Improper Encoding or Escaping of Output
Published
2026-07-14T21:25Z
EPSS history
Timeline
  • 14 JUL 21:25Z
    Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
    cvelistv5