# GHSA-5G2H-25JH-CW8R: XSS in symfony/ux-icons via Scripts Nested in SVG Style Elements: Incomplete Fix for CVE-2026-55877

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-11-24
- Modified: 2026-11-24

## Tracked as

- [CVE-2026-133775](https://cve.now/CVE-2026-133775.md): Symfony UX Icons XSS in inline SVG icon rendering via style elements

## Affected versions

- symfony/ux-icons (Packagist): from 2.17.0, fixed in 2.36.3
- symfony/ux-icons (Packagist): from 3, fixed in 3.8.1

## Description

### Description

The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. It removes scripts and event handlers everywhere, except inside `<style>` elements.

Unlike in HTML, the content of an SVG `<style>` element is parsed as markup. An icon can therefore still run JavaScript in the page with, for example:

```xml
<style><script>alert(1)</script></style>
<style><img src="invalid:" onerror="alert(1)"/></style>
```

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.

### Resolution

`<style>` elements are now sanitized like any other element, so their descendants lose scripts and event handlers. A `<style>` element that tries to close itself early is still removed. Otherwise, its CSS is kept.

The patches for this issue are available [here](https://github.com/symfony/ux/commit/1733900e0ef887beb11ab3b858c4e2bfa23bf52e) for branch 2.x and [here](https://github.com/symfony/ux/commit/8c31faa44fbdc1a698ca3283eb06a2d3555baab2) for branch 3.x.

### Credits

We would like to thank [tnytown](https://github.com/tnytown) for reporting the issue and providing the fix.

## References

- https://github.com/symfony/ux/security/advisories/GHSA-5g2h-25jh-cw8r

Page: https://cve.now/GHSA-5G2H-25JH-CW8R

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
