Read the docs
TI-2025-30339 Aliases CVE-2025-47946GHSA-5j3w-5pcr-f8hg

Cross-site scripting in symfony ux

Priority LOW 27CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

Symfony UX is an initiative and set of libraries to integrate JavaScript tools into applications. Prior to version 2.25.1, rendering `{{ attributes }}` or using any method that returns a `ComponentAttributes` instance (e.g. `only()`, `defaults()`, `without()`) ouputs attribute values directly without escaping. If these values are unsafe (e.g. contain user input), this can lead to HTML attribute injection and XSS vulnerabilities. The issue is fixed in version `2.25.1` of `symfony/ux-twig-component` Those who use `symfony/ux-live-component` must also update it to `2.25.1` to benefit from the fix, as it reuses the `ComponentAttributes` class internally. As a workaround, avoid rendering `{{ attributes }}` or derived objects directly if it may contain untrusted values. Instead, use `{{ attributes.render('name') }}` for safe output of individual attributes.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00252 16th percentileScored 2026-11-07
Fix Fixed ux (symfony): 2.25.1symfony/ux-twig-component (Packagist): 2.25.1+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonyuxbefore 2.25.12.25.1Patch availableCNA
—symfony/ux-twig-component (Packagist)before 2.25.12.25.1Patch availableGHSA-5j3w-5pcr-f8hg
—symfony/ux-live-component (Packagist)before 2.25.12.25.1Patch availableGHSA-5j3w-5pcr-f8hg
  • ux Vendorsymfony Affected before 2.25.1 Fixed in 2.25.1 Patch available CNA
  • symfony/ux-twig-component (Packagist) Vendor— Affected before 2.25.1 Fixed in 2.25.1 Patch available GHSA-5j3w-5pcr-f8hg
  • symfony/ux-live-component (Packagist) Vendor— Affected before 2.25.1 Fixed in 2.25.1 Patch available GHSA-5j3w-5pcr-f8hg

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:symfony:ux:*:*:*:*:*:*:*:*——symfony
  • cpe:2.3:a:symfony:ux:*:*:*:*:*:*:*:* Versions — — ·symfony

Remediation

  • Fix · CNA ux (symfony) Fixed in 2.25.1
  • Fix · GHSA-5j3w-5pcr-f8hg symfony/ux-twig-component (Packagist) Fixed in 2.25.1 Advisory →
  • Fix · GHSA-5j3w-5pcr-f8hg symfony/ux-live-component (Packagist) Fixed in 2.25.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-47946
  2. 2026-10-03 Alias added: GHSA-5j3w-5pcr-f8hg

References

  • TI-2024-33775 Ability to change environment from query in symfony/runtime CVSS 3.1HIGH 7.3
  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2026-35851 Incorrect authorization in symfony CVSS 4.0HIGH 8.7
  • TI-2026-35264 Improper input validation in symfony CVSS 4.0HIGH 8.3
See all 94 →

Sources