Symfony Fixes Incomplete XSS Patch in ux-icons Library

Symfony has released a patch for CVE-2026-133777, a medium-severity cross-site scripting vulnerability in the ux-icons library. The flaw arises because the previous fix for CVE-2026-55877 did not fully sanitize SVG content when browsers switch from SVG to HTML parsing modes. Attackers can exploit this by injecting HTML elements or comments that execute scripts or alter page behavior if they can influence icon sources. The vulnerability affects versions 2.36.1 through 2.36.2 and 3.2.0 through 3.8.0, with fixes available in versions 2.36.3 and 3.8.1.
Key points
- The vulnerability exists in symfony/ux-icons versions 2.36.1 to 2.36.2 and 3.2.0 to 3.8.0.
- It is rated 5.3 Medium severity by Symfony, requiring user interaction but no special privileges.
- The issue stems from an incomplete fix for CVE-2026-55877, where SVG sanitization failed to account for browser parsing shifts to HTML.
- Attackers can inject live HTML elements, such as scripts or forms, via SVG comments or specific tags.
- Patches are available in versions 2.36.3 and 3.8.1, which remove comments and restrict HTML-switching elements.
Background
This incident follows a trend of medium-severity XSS flaws in web components, similar to recent patches for the WordPress Dokan and BuddyPress plugins. While those affected specific plugins, this issue impacts a core Symfony component used for rendering icons. The vulnerability highlights the complexity of sanitizing SVG content in modern browsers, where parsing rules change dynamically based on markup structure.
Why it matters
Developers using Symfony's ux-icons package must update immediately to prevent potential script execution in their applications. Since the vulnerability relies on user interaction, it poses a risk in environments where users view pages containing attacker-influenced icons, such as those sourced from local files or the Iconify API. The fix ensures that SVG content is properly neutralized regardless of how the browser interprets the markup, closing a gap that could lead to data integrity issues or unauthorized redirects.
What to watch
Users should upgrade to symfony/ux-icons version 2.36.3 or 3.8.1 to apply the security patch. Organizations should audit their icon sources to ensure they are not exposing themselves to untrusted SVG content. No further action is required for those already on the patched versions.
Want the full story? Read the original reporting
Read on CVEs | Zero Wire | Cloudflare Radar