CVE-2025-47946 Details
Description
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.
A vulnerability in the Symfony UX Twig Component library prior to version 2.25.1 allows for unsanitized HTML attribute injection. This issue arises when rendering `{{ attributes }}` or using methods that return a `ComponentAttributes` instance, such as `only()`, `defaults()`, or `without()`. The vulnerability can lead to Cross-Site Scripting (XSS) by injecting unsafe values, like user input, directly into HTML attributes without proper escaping. The problem is present in versions of `symfony/ux-twig-component` prior to 2.25.1, as well as in `symfony/ux-live-component`, which must also be updated to 2.25.1 to address the issue.
Update the `symfony/ux-twig-component` and `symfony/ux-live-component` packages to version 2.25.1. After updating, ensure that `{{ attributes }}` or derived objects are not rendered directly if they may contain untrusted values. Instead, use `{{ attributes.render('name') }}` for safe output of individual attributes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 19, 2025CISA-ADP
Assessed May 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/symfony/ux/commit/b5d1c85995c128cb926d47a96cfbfbd500b643a8 | [email protected] | Source CodeVendor |
| https://github.com/symfony/ux/security/advisories/GHSA-5j3w-5pcr-f8hg | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Symfony UX | All versions |
CPE
Remediation
| |
| Symfony UX TwigComponent | All versions |
CPE
Remediation
| |
| Symfony UX LiveComponent | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 19, 2025 | New CVE Received | [email protected] |
Volerion