CVE-2026-133777 in ux-iconsinfo

Summary

by MITRE • 11/24/2026

The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. Browsers parse an inline <svg> element with the rules of SVG, until they meet a start tag like <p>, <img> or <meta>. They then parse the rest of the icon as HTML, and they also parse the content of <title> and <desc> elements as HTML. The sanitizer only checked icons as SVG, so an icon could contain markup that becomes live once parsed as HTML. For example, after a <p> element, a comment can end a <style> element early and add an <img> element with an event handler:

<p/><style><!--</style><img src=1 onerror=alert(1)>--></style>

In the same way, an icon could add a <base> element to the page, which changes where its relative links and forms go. It could also add a <meta> element that redirects the page.

Comments were kept too, while browsers end a comment at <!--> or <!--->. The rest of such a comment then became live markup, even without any HTML element before it.

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.

The sanitizer now removes comments and the elements that make browsers switch to HTML, and only keeps the text of <title> and <desc> elements. It also makes sure that markup in CDATA sections and attribute values can't end a <noscript> element around the icon.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified as CVE-2026-55877, associated with GHSA-6v8j-33hc-mv84, represents a sophisticated cross-site scripting flaw rooted in the complex parsing rules of web browsers when handling inline SVG elements. The core technical issue arises from how modern browsers interpret mixed content within an inline <svg> tag. While the browser initially parses the element using SVG-specific rendering rules, it switches to HTML parsing mode upon encountering specific start tags such as <p>, <img>, or <meta>. Crucially, this switch also applies to the contents of <title> and <desc> elements, which are treated as HTML rather than plain text. The original implementation failed to account for these context-switching behaviors, sanitizing only the SVG-specific parts while leaving potential HTML injection vectors intact within sections that would be interpreted as HTML by the browser engine.

This architectural oversight allows an attacker to inject malicious markup that bypasses standard security filters. For instance, if a sanitized icon contains a <p> element followed by a crafted style block and image tag, the browser will parse up to the <p> using SVG rules but then switch to HTML mode for the remainder of the content. An attacker can exploit this by closing an open <style> element prematurely using an XML comment syntax that browsers interpret as ending the script context, thereby allowing subsequent elements like <img with onerror event handlers to execute arbitrary JavaScript code. This technique effectively neutralizes CSS-based protections and allows direct execution of client-side scripts within the victim's browser session.

Beyond simple script injection, this vulnerability enables more severe attacks such as clickjacking or navigation hijacking through the injection of a <base> element. By inserting a base tag into the inline SVG content that gets parsed as HTML, an attacker can alter the base URL for all relative links and forms on the page. This means any subsequent user interactions with hyperlinks or form submissions could be redirected to malicious domains controlled by the attacker. Similarly, injecting a <meta> element with HTTP-EQUIV attributes allows for automatic page redirections, potentially leading users away from trusted sites to phishing pages without their explicit interaction beyond viewing the compromised icon.

The vulnerability is further exacerbated by improper handling of XML comments within SVG content. Browsers terminate HTML comments at <---> sequences. If an attacker includes a comment that ends prematurely due to these specific delimiters, any markup following it becomes live executable code rather than inert text. This behavior persists even without preceding HTML elements like <p>, meaning the attack vector is broader and more easily triggered than initially apparent. The presence of comments in icon data sources provided attackers with an additional avenue to break out of safe parsing contexts and inject malicious payloads that bypass standard sanitization logic which did not account for these edge cases in comment termination.

Applications are exposed when they allow user influence over the SVG content of icons rendered inline, particularly those sourced from local files or external APIs such as Iconify. The risk is significant because icon libraries are often trusted sources, and developers may assume that data fetched from reputable CDNs or stored locally is safe to render without rigorous validation. However, if an attacker can manipulate these sources through compromised accounts, supply chain attacks, or misconfigurations, they gain the ability to inject persistent malicious code into every page where those icons appear. This transforms a simple visual component into a vector for widespread compromise across multiple pages and potentially entire applications depending on icon usage frequency.

The remediation strategy involves enhancing the sanitizer to strictly enforce context-aware parsing rules that align with browser behavior. The fix removes comments entirely from SVG content, eliminating the possibility of premature comment termination leading to code execution. It also strips out elements known to trigger HTML parsing modes within SVG contexts, such as <p>, <img>, and <meta>. Furthermore, only the text content of <title> and <desc> elements is preserved, ensuring that any markup embedded there does not execute as live code. The sanitizer now explicitly handles CDATA sections and attribute values to prevent them from breaking out of protective wrappers like <noscript>, thereby closing loopholes where attackers might attempt to escape context boundaries using encoded or special character sequences.

From a classification perspective, this vulnerability aligns with CWE-79: Improper Neutralization of Input During Web Page Generation, commonly known as Cross-Site Scripting (XSS). Specifically, it falls under the subcategory of DOM-based XSS where the vulnerability exists in client-side code that processes untrusted data. In terms of MITRE ATT&CK mapping, this technique corresponds to T1059: Command and Control via Web Protocols or more specifically T1189: Drive-by Client Side Scripting if exploited for initial access, though it is primarily a persistence mechanism when embedded in shared resources like icon libraries. The attack leverages the browser's own parsing logic against itself, making detection difficult without specialized static analysis tools that simulate multi-context rendering environments.

Mitigation requires not only applying the provided patch but also implementing defense-in-depth strategies. Developers should ensure that all external data sources for icons are validated and signed where possible to prevent tampering during transit or storage. Content Security Policy directives can help mitigate impact by restricting script execution origins, although they do not fix the underlying vulnerability. Regular audits of icon libraries used in applications are recommended, especially those sourced from third-party CDNs. Additionally, implementing strict output encoding for all dynamic content and avoiding inline rendering of untrusted SVG data unless absolutely necessary will reduce the attack surface significantly. Security teams should monitor for anomalies in browser console logs indicating unexpected script execution or navigation changes originating from icon-related DOM elements.

Responsible

Symfony

Reservation

11/20/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00554

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!