Read the docs
TI-2026-34289 Aliases CVE-2026-46637GHSA-jv8m-2544-3pg3

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

Priority LOW 23CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00305 23rd percentileScored 2026-11-07
Fix Fixed Twig (twigphp): 3.26.0cssinliner-extra (twig): 3.26.0+3 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonyTwigbefore 3.26.03.26.0Patch availableCNA
twigcssinliner-extrabefore 3.26.03.26.0Patch availableCNA
twigmarkdown-extrabefore 3.26.03.26.0Patch availableCNA
—twig/markdown-extra (Packagist)before 3.26.03.26.0Patch availableGHSA-jv8m-2544-3pg3
—twig/cssinliner-extra (Packagist)before 3.26.03.26.0Patch availableGHSA-jv8m-2544-3pg3
  • Twig Vendorsymfony Affected before 3.26.0 Fixed in 3.26.0 Patch available CNA
  • cssinliner-extra Vendortwig Affected before 3.26.0 Fixed in 3.26.0 Patch available CNA
  • markdown-extra Vendortwig Affected before 3.26.0 Fixed in 3.26.0 Patch available CNA
  • twig/markdown-extra (Packagist) Vendor— Affected before 3.26.0 Fixed in 3.26.0 Patch available GHSA-jv8m-2544-3pg3
  • twig/cssinliner-extra (Packagist) Vendor— Affected before 3.26.0 Fixed in 3.26.0 Patch available GHSA-jv8m-2544-3pg3

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*before 3.26.0Vulnerablesymfony
  • cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* Versions before 3.26.0 Vulnerable ·symfony

Remediation

  • Fix · CNA Twig (twigphp) Fixed in 3.26.0
  • Fix · CNA cssinliner-extra (twig) Fixed in 3.26.0
  • Fix · CNA markdown-extra (twig) Fixed in 3.26.0
  • Fix · GHSA-jv8m-2544-3pg3 twig/markdown-extra (Packagist) Fixed in 3.26.0 Advisory →
  • Fix · GHSA-jv8m-2544-3pg3 twig/cssinliner-extra (Packagist) Fixed in 3.26.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-46637
  2. 2026-10-03 Alias added: GHSA-jv8m-2544-3pg3

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-18637 Twig may load a template outside a configured directory when using the filesystem loader CVSS 3.1HIGH 7.5
  • TI-2026-34292 Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation CVSS 4.0HIGH 8.7
  • TI-2026-34285 Twig: PHP code injection via `{% use %}` template name CVSS 4.0HIGH 8.7
See all 24 →

Sources