A malicious SVG icon can run script in your visitors' browsers through the sanitizer added by the fix for CVE-2026-55877. This is cross-site scripting (XSS): an attacker's code running as if it came from your site.
How it works
When the sanitizer changed an icon, it wrote the icon back out as HTML. HTML leaves the text inside some elements, like <style>, unescaped. Inside an SVG, browsers read that text as markup, so text the sanitizer had treated as harmless became live in the page. See the Symfony UX advisory.
On 2.x, the sanitizer also kept elements from the XHTML namespace. An icon could then add a working <form> or <base> element where icons are read as XML, as in the Google Maps bridge of symfony/ux-map.
The fix keeps only SVG elements. On 2.x, it also writes icons out as XML, which escapes their text.