CVE-2025-47946
PHP vulnerability analysis and mitigation

Overview

Symfony UX, an initiative and set of libraries for integrating JavaScript tools into applications, disclosed a vulnerability (CVE-2025-47946) affecting versions prior to 2.25.1. The vulnerability was discovered in the component attributes rendering functionality, where {{ attributes }} or methods returning ComponentAttributes instances output attribute values without proper escaping (GitHub Advisory, NVD).

Technical details

The vulnerability stems from insufficient sanitization in the ComponentAttributes class where attribute values are output directly without proper HTML escaping. This affects both the symfony/ux-twig-component and symfony/ux-live-component packages. The vulnerability has been assigned a CVSS v3.1 score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating it requires user interaction but can be exploited remotely without authentication (GitHub Advisory, Wiz).

Impact

When exploited, this vulnerability can lead to HTML attribute injection and XSS (Cross-Site Scripting) vulnerabilities. If attribute values contain untrusted user input, attackers could potentially inject malicious HTML attributes or JavaScript code that executes in the context of the web application (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 2.25.1 of both symfony/ux-twig-component and symfony/ux-live-component packages. Users should upgrade to these versions to receive the fix. As a temporary workaround, developers can avoid rendering {{ attributes }} or derived objects directly when they may contain untrusted values. Instead, they should use {{ attributes.render('name') }} for safe output of individual attributes (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management