Исправление для CVE-2026-55877 (GHSA-6v8j-33hc-mv84) дезинфицирует SVG значков, прежде чем они будут отображены в строке. Когда дезинфицирующее средство меняет значок, оно снова записывает значок как HTML. HTML пишет содержание некоторых элементов, таких как <style>, не избегая его. Но внутри <svg> браузеры анализируют содержимое элемента <style> в качестве разметки.
Сбежавшая разметка в таком элементе затем становится живой на странице: <path onclick"x"/style xmlns="http://www.w3.org/1999/xhtml"><img srcx onerroralert(1)></style> Обработчик событий элемента <path> только заставляет дезинфицирующее средство менять значок. В зависимости от версии, это влияет на каждый элемент <style> или элементы пространства имен XHTML, такие как <style>, <xmp> или <noembed>. На 2.x также были сохранены элементы пространства имен XHTML.
Затем элемент XHTML <form> или <base> становится живым, где значки анализируются как XML, как в мосту ux-map Google Maps. Приложения выставляются, когда злоумышленник может повлиять на SVG иконок, которые они отображают. Источники те же, что и для CVE-2026-55877, такие как локальные файлы значков и ответы Iconify API.
На 2.x дезинфицирующее устройство теперь записывает значки как XML, что исключает их текст и сохраняет только элементы пространства имен SVG. На 3.x он теперь сохраняет только элементы пространства имен SVG.
Показать оригинальное описание (EN)
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 <style>, without escaping it. But inside an <svg>, browsers parse the content of a <style> element as markup. Escaped markup in such an element then becomes live in the page: <path onclick="x"/><style xmlns="http://www.w3.org/1999/xhtml"><img src=x onerror=alert(1)></style> The event handler of the <path> element only makes the sanitizer change the icon. Depending on the version, this affects every <style> element, or the elements of the XHTML namespace, like <style>, <xmp> or <noembed>. On 2.x, the elements of the XHTML namespace were also kept. An XHTML <form> or <base> 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.
Характеристики атаки
Последствия
Строка CVSS v4.0