{"id":"CVE-2025-47946","published":"2025-05-19T19:25:19Z","modified":"2025-05-20T13:01:10Z","title":"symfony/ux-live-component and symfony/ux-twig-component vulnerable to unsanitized HTML attribute injection via…","vendor":"symfony","product":"ux","tier":"tail","description":{"text":"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.\nInstead, use `{{ attributes.render('name') }}` for safe output of individual attributes.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00433,"percentile":0.29371,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/symfony/ux/security/advisories/GHSA-5j3w-5pcr-f8hg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/ux/commit/b5d1c85995c128cb926d47a96cfbfbd500b643a8","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":5.87},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"ux","versions":["< 2.25.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-20T13:01:03.682812Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/ux-twig-component","vulnerableRanges":["<2.25.1"],"patched":["2.25.1"],"from":["GHSA-5j3w-5pcr-f8hg"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/ux-live-component","vulnerableRanges":["<2.25.1"],"patched":["2.25.1"],"from":["GHSA-5j3w-5pcr-f8hg"],"provenance":"source"}],"summary":{"text":"The Symfony UX components symfony/ux-twig-component and symfony/ux-live-component (prior to 2.25.1 of symfony/ux-twig-component) fail to escape HTML attribute values when {{ attributes }} or derived ComponentAttributes methods such as only(), defaults(), or without() are rendered. An attacker who can get untrusted input into those attribute values over the network, with a victim user interacting with the affected page, can inject HTML attributes that lead to cross-site scripting, provided the application renders {{ attributes }} or derived objects directly.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:26Z"},"euvd":{"id":"EUVD-2025-15795","exploited":false,"provenance":"source"}}