A malicious SVG icon can run script in your visitors' browsers, change where the page's links and forms go, or redirect the page, despite the fix for CVE-2026-55877.
How it works
Browsers read an inline SVG by SVG rules until they meet certain HTML tags, and then switch to HTML rules for the rest. They also read the text of <title> and <desc> elements as HTML. The sanitizer only checked icons as SVG, so markup that only becomes live as HTML got through. Comments were kept too, and browsers can end a comment earlier than the sanitizer expected. See the Symfony UX advisory.
Besides running script, an icon could add a <base> element, which changes where the page's relative links and forms go, or a <meta> element that redirects the page.
The fix removes comments and the elements that make browsers switch to HTML, and keeps only the text of <title> and <desc>.