CVE-2026-133779 in ux-icons
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. 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.
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.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
CVE-2026-55877 represents a critical failure in input validation logic within SVG rendering libraries, specifically stemming from inconsistencies between how sanitizers parse attribute names versus how browsers interpret them during execution. The vulnerability arises because the security checks were implemented by matching attribute names exactly as they appeared in the source markup, rather than normalizing or resolving them according to standard XML and HTML parsing rules. This discrepancy creates a bypass mechanism where malicious payloads can evade detection while still being executed by the browser's rendering engine. In version 2.x of the affected software, the fromFile() function keyed attributes based on their local name without accounting for case insensitivity or namespace prefixes inherent in SVG standards. Consequently, event handlers such as x:onload passed through the sanitizer because they did not match the expected onload string exactly, yet browsers normalized these to standard onload events that trigger upon page load. This behavior allows attackers to inject arbitrary JavaScript execution contexts into otherwise safe-looking icon files.
The technical flaw extends beyond simple case sensitivity issues and involves complex namespace handling within SVG documents. SMIL animations utilize an attributeName property to define which element properties are animated, and this attribute is also subject to case-insensitive parsing by browsers. An attacker could craft a SMIL animation with ATTRIBUTENAME set to href in uppercase or mixed case, bypassing the sanitizer’s check for lowercase href attributes. Once rendered, the browser would interpret this as setting an href property on a link element, potentially allowing the injection of javascript: URLs that execute malicious code when interacted with. Furthermore, SVG supports XML namespaces where prefixes can be arbitrarily defined by the document author. In version 2.x, an attribute like q:href under a custom XLink namespace prefix was not checked at all because the sanitizer only looked for standard xlink:href or href attributes. This oversight permitted attackers to embed dangerous links using non-standard prefixes that slipped past validation logic entirely.
In version 3.x of the library, while some improvements were made to check attributes by local name and handle animation attribute names case-insensitively, significant risks remain due to namespace resolution complexities. The sanitizer attempts to normalize prefix handling but may still fail if XML parsers resolve prefixes differently than expected during the rendering phase. Specifically, when an SVG contains a prefixed attribute such as q:href in the XLink namespace, both the sanitizer and the browser must agree on how that prefix maps to its actual URI for validation to be effective. If there is any divergence between how the library resolves these namespaces and how the browser’s XML parser interprets them during DOM construction, the security boundary collapses. This means that even with updated checks, certain edge cases involving namespace declarations or dynamic prefix resolution could still allow malicious attributes to persist in the final rendered output.
The operational impact of this vulnerability is severe for any application that renders user-controlled or externally sourced SVG icons inline within HTML pages. Since icon libraries often fetch data from remote APIs like Iconify or load local files, an attacker who can influence these sources gains a persistent vector for Cross-Site Scripting (XSS). The attack surface includes not only direct injection of malicious SVG content but also the manipulation of legitimate-looking assets that contain hidden payloads within their animation definitions or namespace-specific attributes. Because icons are frequently rendered in high-visibility areas such as navigation bars, buttons, and toolbars, successful exploitation can lead to widespread compromise of user sessions, theft of sensitive data, or defacement of application interfaces. The trust placed in icon libraries makes this a particularly dangerous class of vulnerability, as developers may assume that standard SVG sanitization is sufficient without considering the nuances of browser-specific parsing behaviors.
Mitigation strategies must address both immediate code-level fixes and broader architectural changes to prevent similar issues. Developers should ensure they are using the latest patched versions of the affected library where attribute checking has been improved to handle case insensitivity for animation attributes and normalize prefix handling more robustly. However, relying solely on client-side sanitization is insufficient given the complexity of SVG parsing rules. Implementing server-side validation that strictly whitelists allowed tags and attributes according to OWASP guidelines provides a stronger defense layer. Additionally, applications should enforce Content Security Policy (CSP) headers with strict directives for script sources to mitigate the impact if XSS occurs. For environments where external icon APIs are used, integrating a dedicated SVG sanitization library like DOMPurify or similar tools that have undergone rigorous security auditing can help neutralize malicious payloads before they reach the browser engine. Regular security assessments and penetration testing focused on XML-based injection vectors are essential to identify residual risks in complex rendering pipelines.
This vulnerability aligns with CWE-79, which covers Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting (XSS). The specific mechanism of bypassing sanitizers through case manipulation and namespace confusion also relates to CWE-601 URL Redirection to Untrusted Site via DOM Based. From a tactical perspective, this attack pattern corresponds to ATT&CK technique T1059 Command and Control Execution using JavaScript, as the primary goal is often to execute arbitrary scripts within the victim’s browser context. Understanding these mappings helps security teams prioritize remediation efforts based on established industry standards for vulnerability classification and mitigation prioritization.