{"answers":{"affected":"4 open source packages ship an affected version, including symfony/ux-live-component and symfony/ux-twig-component.","exploited":"There is no known exploitation of CVE-2025-47946 in the wild and no public exploit code.","fix":"Upgrade symfony/ux-live-component to 2.25.1 or later.","what":"CVE-2025-47946 is a medium-severity cross-site scripting vulnerability in symfony ux, published on 19 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-47946 and fix it if it is affected.\n\nWhat it is: CVE-2025-47946 is a medium-severity cross-site scripting vulnerability in symfony ux, published on 19 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-47946 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- symfony/ux-live-component (Packagist): affected all versions; fixed in 2.25.1\n- symfony/ux-live-component (Packagist): affected all versions; fixed in 2.25.1\n- symfony/ux-twig-component (Packagist): affected all versions; fixed in 2.25.1\n- symfony/ux-twig-component (Packagist): affected all versions; fixed in 2.25.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-47946/ (Markdown: https://insights.sbomify.com/CVE-2025-47946/index.md)","id":"CVE-2025-47946","markdown":"https://insights.sbomify.com/CVE-2025-47946/index.md","name":"CVE-2025-47946","record":{"aliases":["GHSA-5j3w-5pcr-f8hg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Symfony UX library","requires_auth":"none","summary":"Attackers can inject malicious HTML attributes leading to XSS when rendering untrusted user input via Symfony UX component attributes.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.\nInstead, use `{{ attributes.render('name') }}` for safe output of individual attributes.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Symfony UX allows unsanitized HTML attribute injection via ComponentAttributes","id":"CVE-2025-47946","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":4,"n_references":2,"next":{"headline":"ModSecurity Has Possible DoS Vulnerability","id":"CVE-2025-47947"},"packages":[{"ecosystem":"Packagist","fixed":["2.25.1"],"introduced":["0"],"last_affected":[],"package":"symfony/ux-live-component","purl":null,"source":"GHSA-5j3w-5pcr-f8hg"},{"ecosystem":"Packagist","fixed":["2.25.1"],"introduced":["0"],"last_affected":[],"package":"symfony/ux-live-component","purl":"pkg:composer/symfony/ux-live-component","source":"GHSA-5j3w-5pcr-f8hg"},{"ecosystem":"Packagist","fixed":["2.25.1"],"introduced":["0"],"last_affected":[],"package":"symfony/ux-twig-component","purl":null,"source":"GHSA-5j3w-5pcr-f8hg"},{"ecosystem":"Packagist","fixed":["2.25.1"],"introduced":["0"],"last_affected":[],"package":"symfony/ux-twig-component","purl":"pkg:composer/symfony/ux-twig-component","source":"GHSA-5j3w-5pcr-f8hg"}],"prev":{"headline":"Donetick Has Weak Default JWT Secret","id":"CVE-2025-47945"},"products":["ux"],"published":"2025-05-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-20","vendors":["symfony"]},"summary":"Attackers can inject malicious HTML attributes leading to XSS when rendering untrusted user input via Symfony UX component attributes.","url":"https://insights.sbomify.com/CVE-2025-47946/"}