CVE-2026-133776: XSS in symfony/ux-icons via Text That Sanitized Icons Contain Unescaped: Incomplete Fix for CVE-2026-55877
The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. When the sanitizer changes an icon, it writes the icon out again as HTML. HTML writes the content of some elements, like <style>, without escaping it. But inside an <svg>, browsers parse the content of a <style> element as markup. Escaped markup in such an element then becomes live in the page:
<path onclick="x"/><style xmlns="http://www.w3.org/1999/xhtml"><img src=x onerror=alert(1)></style>
The event handler of the <path> element only makes the sanitizer change the icon. Depending on the version, this affects every <style> element, or the elements of the XHTML namespace, like <style>, <xmp> or <noembed>.
On 2.x, the elements of the XHTML namespace were also kept. An XHTML <form> or <base> element then becomes live where icons are parsed as XML, like in the Google Maps bridge of ux-map.
Applications are exposed when an attacker can influence the SVG of the icons they render. The sources are the same as for CVE-2026-55877, like local icon files and the responses of the Iconify API.
On 2.x, the sanitizer now writes icons out as XML, which escapes their text, and only keeps the elements of the SVG namespace. On 3.x, it now only keeps the elements of the SVG namespace.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications are exposed when an attacker can influence the SVG content of icons that the application renders inline. Relevant sources include local icon files and responses from the Iconify API.
What must an attacker do to exploit the vulnerability?
The attacker needs to supply or modify an SVG icon that is processed by the sanitizer and then rendered inline. A malicious SVG can use elements such as style, and in some affected versions XHTML-namespace elements, to cause escaped markup to become live browser markup.
Are there additional impacts in the 2.x line?
Yes. In 2.x, XHTML-namespace elements were also retained; an XHTML form or base element can become live when icons are parsed as XML, such as through the Google Maps bridge of ux-map.
What should be prioritized if patching cannot happen immediately?
Restrict untrusted control over all SVG icon sources, including uploaded or locally sourced icon files and Iconify API responses. Avoid rendering attacker-influenced SVG icons inline until the issue is remediated.