# GHSA-X2M8-8V86-FJVX: XSS in symfony/ux-icons via Attribute Names That the Sanitizer Reads Differently Than Browsers: 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-133779](https://cve.now/CVE-2026-133779.md): Symfony UX Icons cross-site scripting in SVG attribute sanitizer

## Affected versions

- symfony/ux-icons (Packagist): from 2.36.1, fixed in 2.36.3
- symfony/ux-icons (Packagist): from 3.2.0, 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. The checks matched attribute names as written in the icon, while browsers and the renderer read some names differently.

On 2.x, `fromFile()` keys the attributes of the root `<svg>` element by their local name. A handler like `x:onload` passed the check, and was then rendered as `onload`, which runs on load. HTML parsers also read attribute names case-insensitively, so a SMIL animation with `ATTRIBUTENAME="href"` could set a `javascript:` URL on a link. And an `href` in the XLink namespace under another prefix, like `q:href`, wasn't checked. On 3.x, the sanitizer writes it out as `xlink:href`, and XML parsers resolve the prefix on both branches.

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

The sanitizer now checks attributes by local name. It also finds the `attributeName` of animations in any case, and ignores the prefix of its value.

The patches for this issue are available [here](https://github.com/symfony/ux/commit/6ee79fb176afce48c1c91b4b1b05ac88acfd3687) for branch 2.x and [here](https://github.com/symfony/ux/commit/02fee6ebdb4b45f2b5b7fe8809364022c7bece1b) for branch 3.x.

### Credits

We would like to thank Nicolas Grekas for reporting the issue.

## References

- https://github.com/symfony/ux/security/advisories/GHSA-x2m8-8v86-fjvx

Page: https://cve.now/GHSA-X2M8-8V86-FJVX

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