Skip to content
Medium 5.3

XSS in symfony/ux-icons via Text That Sanitized Icons Contain Unescaped: Incomplete Fix for CVE-2026-55877

CVE-2026-133776 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Symfonysymfony/ux-icons
≥ 2.36.1, < 2.36.3→ 2.36.3
≥ 3.2.0, < 3.8.1→ 3.8.1
Original description The description as published by the source.

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 , without escaping it. But inside an , browsers parse the content of a element as markup. Escaped markup in such an element then becomes live in the page:

<img src=x onerror=alert(1)>

The event handler of the element only makes the sanitizer change the icon. Depending on the version, this affects every element, or the elements of the XHTML namespace, like , or .

On 2.x, the elements of the XHTML namespace were also kept. An XHTML or 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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details