CVE Catalog

CVE-2026-46637

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.18%

7th percentile - higher than 7% of all known CVEs

Summary

In the Twig library, a vulnerability was found where several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all]. This causes 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. The issue is fixed in version 3.26.0.

Risk Assessment

The organization is at risk of Cross-Site Scripting (XSS) attacks because unescaped output may be treated as safe in various contexts, allowing injection of malicious code.

Recommendation

Immediately update the Twig library to version 3.26.0 or later, which contains the fix for this vulnerability.

Other vulnerabilities in Twig

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS