XSS in symfony/ux-icons via Text That Sanitized Icons Contain Unescaped: Incomplete Fix for CVE-2026-55877
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Symfonysymfony/ux-icons |
2.36.1 以上 2.36.3 未満→ 2.36.3 3.2.0 以上 3.8.1 未満→ 3.8.1 |
2.36.3 3.8.1 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. When the sanitizer changes an icon, it writes the icon out again as HTML. HTML writes the content of some elements, like , without escaping it. But inside an , browsers parse the content of a element as markup. Escaped markup in such an element then becomes live in the page:
<img src=x onerror=alert(1)>
The event handler of the element only makes the sanitizer change the icon. Depending on the version, this affects every element, or the elements of the XHTML namespace, like , or .
On 2.x, the elements of the XHTML namespace were also kept. An XHTML or element then becomes live where icons are parsed as XML, like in the Google Maps bridge of ux-map.
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.
On 2.x, the sanitizer now writes icons out as XML, which escapes their text, and only keeps the elements of the SVG namespace. On 3.x, it now only keeps the elements of the SVG namespace.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory symfony.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web packagist.org