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.
Published: 2026-07-08
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

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.

Affected Systems

Symfony UX bundles shipped with the are affected. The risk applies to applications using the ux_icon() function from versions 2.17.0 through 2.36.0 and from 3.0.0 through 3.1.9. Software developers deploying those bundle versions must upgrade to mitigate the vulnerability.

Risk and Exploitability

The CVSS score of 6.1 indicates a moderate severity. An EPSS score of < 1% suggests that while exploitation is unlikely, it is not absent. The vulnerability is not listed in the CISA KEV catalog, implying no confirmed public exploits. The attack vector is inferred: any web page rendering ux_icon() with an untrusted SVG source or a remote Iconify call could be leveraged to deliver the malicious payload, as the content is directly inserted into the DOM.

Generated by OpenCVE AI on July 28, 2026 at 09:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor‑supplied patches by upgrading Symfony UX to version 2.36.1 or 3.2.0, which removes the unsanitized SVG issue.
  • Restrict the usage of ux_icon() to only trusted local SVG files and avoid loading SVGs from external or untrusted sources.
  • Configure a web application firewall or content security policy to block or neutralize SVGs containing script tags or unsafe attributes before they reach the browser.

Generated by OpenCVE AI on July 28, 2026 at 09:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6v8j-33hc-mv84 symfony/ux-icons: XSS via unsanitized SVG content in local files and Iconify on-demand responses
History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony ux
Vendors & Products Symfony
Symfony ux

Thu, 09 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title Symfony UX: XSS in symfony/ux-icons via unsanitized SVG content in local files and Iconify on-demand responses
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T14:40:25.026Z

Reserved: 2026-06-17T16:59:42.759Z

Link: CVE-2026-55877

cve-icon Vulnrichment

Updated: 2026-07-09T14:21:01.646Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T09:15:06Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')