Medium severity · published Jul 14, 2026
CVE-2026-46637
Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
5.4
CVSS
0.3%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 23% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
TW
Twig · twigphp
< 3.26.0 · source: vendor, NVD
CS
cssinliner-extra · twig
< 3.26.0 · source: vendor
MA
markdown-extra · twig
< 3.26.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-46637
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-46637
Patch
https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299
Patch
https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a
Release Notes
https://github.com/twigphp/Twig/releases/tag/v3.26.0
Vendor Advisory
https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3
