CVE-2026-46637

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductSymfony Twig
PublishedJul 14, 2026
First seenJul 14, 2026
Weakness typeCWE-116CWE-116

How to fix

Update
  • symfony twig3.26.0 or later
  • twig/markdown-extra3.26.0 or later
  • twig/cssinliner-extra3.26.0 or later

Affected products

ProductAffected versionsFixed in
symfony twigv < 3.26.03.26.0
twig/markdown-extraPackagistv < 3.26.03.26.0
twig/cssinliner-extraPackagistv < 3.26.03.26.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.