SecurityContext

CVE-2025-47946: Symfony UX - Stored XSS

  • Cve: CVE-2025-47946
  • Name: Symfony UX - Stored XSS
  • 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.
  • Impact: Attackers can inject malicious HTML attributes leading to cross-site scripting, compromising user sessions or data.
  • Remediation: Update symfony/ux-twig-component and symfony/ux-live-component to version 2.25.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: stored_xss
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00256
  • Epss percentile: 0.17256
  • Assignee: [email protected]
  • Published at: 2025-05-19T20:15:26Z
  • Age in days: 554
  • Modified at: 2026-06-17T09:28:52Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-47946
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/symfony/ux/commit/b5d1c85995c128cb926d47a96cfbfbd500b643a8nvd
https://github.com/symfony/ux/security/advisories/GHSA-5j3w-5pcr-f8hgnvd

Products

ProductAffectedPlatform boundSourcesUrl
symfony:ux< 2.25.1nocna_alias_text/v1/products/symfony/ux

Projects

Same in every row:

  • Indexed: yes
RepositoryLink kindsUrl
symfony/uxcommit, package, security_advisory/v1/repositories/symfony/ux
symfony/ux-twig-componentcommit/v1/repositories/symfony/ux-twig-component
symfony/ux-live-componentcommit/v1/repositories/symfony/ux-live-component

Index

  • Repositories: 7
  • Repositories high signal: 7
  • Checked, none or zero: packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts