Skip to content

CVE-2025-47946 symfony/ux-live-component and symfony/ux-twig-component vulnerable to unsanitized HTML attribute injection via ComponentAttributes

MediumCVSS 6.1 EPSS 0.26% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHP

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
symfony/ux-live-component(Packagist) < 2.25.1; = v2.0.0; = v2.0.1; = v2.1.0 +39 more 2.25.1 Fixed
symfony/ux-twig-component(Packagist) < 2.25.1; = v2.0.0; = v2.0.1; = v2.1.0 +38 more 2.25.1 Fixed
symfony ux = < 2.25.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
symfony/ux-twig-component(Packagist) < 2.25.1 2.25.1
symfony/ux-twig-component(Packagist) = v2.0.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.0.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.1.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.1.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.10.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.11.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.11.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.11.2 No fix listed
symfony/ux-twig-component(Packagist) = v2.12.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.13.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.13.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.13.3 No fix listed
symfony/ux-twig-component(Packagist) = v2.14.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.14.2 No fix listed
symfony/ux-twig-component(Packagist) = v2.15.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.16.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.17.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.18.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.18.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.19.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.19.2 No fix listed
symfony/ux-twig-component(Packagist) = v2.2.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.20.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.21.0 No fix listed
Show 61 more
ProductAffected versionsFixed in
symfony/ux-twig-component(Packagist) = v2.22.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.22.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.23.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.24.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.25.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.3.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.4.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.5.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.6.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.6.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.7.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.7.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.8.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.8.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.9.0 No fix listed
symfony/ux-twig-component(Packagist) = v2.9.1 No fix listed
symfony/ux-twig-component(Packagist) = v2.9.2 No fix listed
symfony/ux-live-component(Packagist) < 2.25.1 2.25.1
symfony/ux-live-component(Packagist) = v2.0.0 No fix listed
symfony/ux-live-component(Packagist) = v2.0.1 No fix listed
symfony/ux-live-component(Packagist) = v2.1.0 No fix listed
symfony/ux-live-component(Packagist) = v2.1.1 No fix listed
symfony/ux-live-component(Packagist) = v2.10.0 No fix listed
symfony/ux-live-component(Packagist) = v2.11.0 No fix listed
symfony/ux-live-component(Packagist) = v2.11.1 No fix listed
symfony/ux-live-component(Packagist) = v2.11.2 No fix listed
symfony/ux-live-component(Packagist) = v2.12.0 No fix listed
symfony/ux-live-component(Packagist) = v2.13.0 No fix listed
symfony/ux-live-component(Packagist) = v2.13.1 No fix listed
symfony/ux-live-component(Packagist) = v2.13.2 No fix listed
symfony/ux-live-component(Packagist) = v2.13.3 No fix listed
symfony/ux-live-component(Packagist) = v2.14.0 No fix listed
symfony/ux-live-component(Packagist) = v2.14.1 No fix listed
symfony/ux-live-component(Packagist) = v2.14.2 No fix listed
symfony/ux-live-component(Packagist) = v2.15.0 No fix listed
symfony/ux-live-component(Packagist) = v2.16.0 No fix listed
symfony/ux-live-component(Packagist) = v2.17.0 No fix listed
symfony/ux-live-component(Packagist) = v2.18.0 No fix listed
symfony/ux-live-component(Packagist) = v2.18.1 No fix listed
symfony/ux-live-component(Packagist) = v2.19.0 No fix listed
symfony/ux-live-component(Packagist) = v2.19.2 No fix listed
symfony/ux-live-component(Packagist) = v2.2.0 No fix listed
symfony/ux-live-component(Packagist) = v2.20.0 No fix listed
symfony/ux-live-component(Packagist) = v2.21.0 No fix listed
symfony/ux-live-component(Packagist) = v2.22.0 No fix listed
symfony/ux-live-component(Packagist) = v2.22.1 No fix listed
symfony/ux-live-component(Packagist) = v2.23.0 No fix listed
symfony/ux-live-component(Packagist) = v2.24.0 No fix listed
symfony/ux-live-component(Packagist) = v2.25.0 No fix listed
symfony/ux-live-component(Packagist) = v2.3.0 No fix listed
symfony/ux-live-component(Packagist) = v2.4.0 No fix listed
symfony/ux-live-component(Packagist) = v2.5.0 No fix listed
symfony/ux-live-component(Packagist) = v2.6.0 No fix listed
symfony/ux-live-component(Packagist) = v2.6.1 No fix listed
symfony/ux-live-component(Packagist) = v2.7.0 No fix listed
symfony/ux-live-component(Packagist) = v2.7.1 No fix listed
symfony/ux-live-component(Packagist) = v2.8.0 No fix listed
symfony/ux-live-component(Packagist) = v2.8.1 No fix listed
symfony/ux-live-component(Packagist) = v2.9.0 No fix listed
symfony/ux-live-component(Packagist) = v2.9.1 No fix listed
symfony ux = < 2.25.1 No fix listed

References