{"id":63353,"date":"2025-05-20T01:31:41","date_gmt":"2025-05-19T22:01:41","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-47946-symfony-ux-twig-component-attribute-injection-xss\/"},"modified":"2025-05-20T01:31:41","modified_gmt":"2025-05-19T22:01:41","slug":"cve-2025-47946-symfony-ux-twig-component-attribute-injection-xss","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-47946-symfony-ux-twig-component-attribute-injection-xss\/","title":{"rendered":"CVE-2025-47946 &#8211; Symfony UX Twig Component Attribute Injection XSS"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-47946<br \/>\n<br \/>\n<strong>Published : <\/strong> May 19, 2025, 8:15 p.m. | 53\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>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.<br \/>\nInstead, use `{{ attributes.render(&#8216;name&#8217;) }}` for safe output of individual attributes.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 6.1 | MEDIUM<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-47946 Published : May 19, 2025, 8:15 p.m. | 53\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-63353","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/63353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=63353"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/63353\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=63353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=63353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=63353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}