Skip to main content
← All vulnerabilities
CVE-2026-45753GHSA-HHG7-C65M-H7FF

Symfony: HtmlSanitizer UrlAttributeSanitizer Omits action/formaction/poster/cite — javascript: URI Survives Sanitization (XSS)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.4.40, 7.4.12, 8.0.12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlAttributeSanitizer::getSupportedAttributes() omits URL-valued attributes including action, formaction, poster, and cite, so configurations that admit those attributes can leave javascript: URIs unsanitized and enable XSS when the resulting HTML is rendered or a victim submits a form or clicks a button. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • symfony symfony

    From 6.1.0-BETA1 · fixed in 6.4.40; From 7.0.0-BETA1 · fixed in 7.4.12; From 8.0.0-BETA1 · fixed in 8.0.12

  • symfony html-sanitizer

    From 6.1.0-BETA1 · fixed in 6.4.40; From 7.0.0-BETA1 · fixed in 7.4.12; From 8.0.0-BETA1 · fixed in 8.0.12

  • symfony/html-sanitizerPackagist

    From 6.1.0 · fixed in 6.4.40

  • symfony/html-sanitizerPackagist

    From 7.0.0 · fixed in 7.4.12

  • symfony/html-sanitizerPackagist

    From 8.0.0 · fixed in 8.0.12

  • symfony/symfonyPackagist

    From 6.1.0 · fixed in 6.4.40

  • symfony/symfonyPackagist

    From 7.0.0 · fixed in 7.4.12

  • symfony/symfonyPackagist

    From 8.0.0 · fixed in 8.0.12

References 5

GitHub · symfony/symfony