CVE-2026-55877
Awaiting Analysis Awaiting Analysis - Queue

Stored XSS in Symfony UX JavaScript Ecosystem

Vulnerability report for CVE-2026-55877, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-09

Assigner: GitHub, Inc.

Description

Symfony UX is a JavaScript ecosystem for Symfony. From 2.17.0 before 2.36.1 and from 3.0.0 before 3.2.0, the ux_icon() Twig function is marked is_safe=['html'] and Icon::toHtml() inlines SVG source verbatim, allowing unsanitized local SVG files or Iconify on-demand JSON body responses containing nested script elements, on* event handlers, or dangerous URL schemes to execute cross-site scripting. This issue is fixed in versions 2.36.1 and 3.2.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-09
Generated
2026-07-12
AI Q&A
2026-07-09
EPSS Evaluated
2026-07-11
NVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
symfony ux From 2.17.0 (inc) to 2.36.1 (exc)
symfony ux From 3.0.0 (inc) to 3.2.0 (exc)
symfony ux 2.36.1
symfony ux 3.2.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Compliance Impact

The vulnerability allows cross-site scripting (XSS) attacks through unsanitized SVG content, which can lead to unauthorized execution of malicious scripts in users' browsers.

Such XSS vulnerabilities can compromise the confidentiality and integrity of user data, potentially leading to data breaches or unauthorized data access.

This can negatively impact compliance with data protection regulations like GDPR and HIPAA, which require safeguarding personal and sensitive information against unauthorized access and attacks.

Therefore, organizations using affected versions of Symfony UX Icons may face increased risk of non-compliance if the vulnerability is not remediated.

Executive Summary

This vulnerability exists in Symfony UX, a JavaScript ecosystem for Symfony, specifically in the ux_icon() Twig function and Icon::toHtml() method. These functions inline SVG source code verbatim and mark the output as safe HTML without sanitization. This allows malicious SVG files or JSON responses containing nested script elements, event handlers, or dangerous URL schemes to execute cross-site scripting (XSS) attacks.

Impact Analysis

The vulnerability can lead to cross-site scripting (XSS) attacks, where an attacker can execute arbitrary scripts in the context of the affected web application. This can result in the theft of user credentials, session hijacking, defacement of the website, or the execution of malicious actions on behalf of the user.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade Symfony UX to version 2.36.1 or later if you are using the 2.x series, or to version 3.2.0 or later if you are using the 3.x series.

These versions fix the issue where the ux_icon() Twig function and Icon::toHtml() inline SVG source verbatim, which could allow cross-site scripting via unsanitized local SVG files or Iconify JSON responses.

Detection Guidance

This vulnerability involves unsanitized SVG content being rendered by the Symfony UX Icons component, which can lead to cross-site scripting (XSS) attacks. Detection involves identifying usage of vulnerable versions of symfony/ux-icons (>=2.17.0 <2.36.1 and >=3.0.0 <3.2.0) and checking for SVG files or Iconify JSON responses containing dangerous elements or attributes such as <script> tags, on* event handlers, or unsafe URL schemes.

To detect potentially malicious SVG content on your system, you can scan your local SVG files or cached icon data for suspicious elements or attributes. For example, you can use command-line tools like grep or find to search for script tags or event handlers within SVG files.

  • Find SVG files containing <script> tags: grep -r --include='*.svg' '<script' /path/to/svg/files
  • Search for event handler attributes (e.g., onload, onclick) in SVG files: grep -r --include='*.svg' 'on[a-z]*=' /path/to/svg/files
  • Check for unsafe URL schemes in href or xlink:href attributes: grep -r --include='*.svg' -E 'href=["\'](javascript:|vbscript:|data:text/html)' /path/to/svg/files

Additionally, if you use Iconify on-demand JSON responses, monitor network traffic or cached JSON icon data for similar patterns containing script elements or event handlers.

Upgrading to patched versions (2.36.1 and 3.2.0) and clearing icon caches is recommended to mitigate this vulnerability.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-55877. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart