Symfony UX Icons, Cross-Site Scripting (XSS), CVE-2026-55877 (Medium) -DC-Aug2026-1678

Listen to this Post

The vulnerability resides in the `symfony/ux-icons` package, a component of the Symfony UX JavaScript ecosystem that provides Twig helpers for rendering icons. At its core, the flaw stems from the `ux_icon()` Twig function being marked with is_safe=['html']. This directive explicitly tells Twig to bypass its automatic output escaping, meaning any HTML or SVG content returned by this function is rendered directly into the page without sanitization.
The `Icon::toHtml()` method then inlines the SVG source code verbatim. Modern browsers parse and execute `

Scroll to Top