Niedrig

symfony/ux-live-component: CSRF Protection Bypass — Accept Header is CORS-Safelisted

  • Veröffentlicht: 19.06.2026
  • Aktualisiert: 11.10.2026 10:22

Description

When using symfony/ux-live-component, methods annotated with #[LiveAction] are invokable from the browser and mutate server-side state via AJAX. Symfony\UX\LiveComponent\EventListener\LiveComponentSubscriber::isLiveComponentRequest() gated these invocations on the presence of Accept: application/vnd.live-component+html, with a code comment stating that this acted as a CSRF protection.

The Accept header is a CORS-safelisted request header, so a cross-origin fetch() can set it without triggering a preflight. The header therefore provided no CSRF protection. Any #[LiveAction] could be forged cross-origin against a victim's session.

In practice the attack is mitigated by SameSite=Lax session cookies (Symfony's default), but applications using SameSite=None, credentials: 'include' with a permissive cookie policy, or that have been pivoted from another same-origin vector remained exposed.

Resolution

isLiveComponentRequest() now additionally requires the request header X-Requested-With: XMLHttpRequest. This header is not CORS-safelisted, so the browser issues a preflight OPTIONS request for any cross-origin attempt; Symfony does not advertise CORS for LiveComponent endpoints, the preflight fails, and the real request is blocked before it reaches the application. The bundled Stimulus client already sends X-Requested-With on every LiveComponent request (RequestBuilder.ts), so standard usage is unaffected. Cross-origin callers must add X-Requested-With to their CORS Access-Control-Allow-Headers allow-list.

The patch for this issue is available here for branch 2.x (and forward-ported to 3.x).

Credits

Symfony would like to thank Anthropic (via Project Glasswing) for reporting the issue and Hugo Alliaume for providing the fix.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Composer-Paket symfony/ux-live-component >= 2.22.0, < 2.36.0, >= 3.0.0, < 3.1.0 2.36.0, 3.1.0

Verweise

CVSS-Wert -
CVSS-Vektor
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Schwäche (CWE)
CWE-352
Plattform
Composer
Paket
symfony/ux-live-component
Veröffentlicht
19.06.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-4m4j-hmqq-3gxm - CC BY 4.0

Schwachstellenhistorie: symfony/ux-live-component

Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
6
Erste → letzte
05.2025 06.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Mittel 3
  • Niedrig 3

Veröffentlichungen pro Jahr

  1. 2025: 1
  2. 2026: 5
  1. symfony/ux-live-component: CSRF Protection Bypass — Accept Header is CORS-Safelisted dieser Eintrag
    Niedrig CVE-2026-49215 >= 2.22.0, < 2.36.0, >= 3.0.0, < 3.1.0 2.36.0, 3.1.0
  2. Niedrig CVE-2026-49212 >= 2.8.0, < 2.36.0, >= 3.0.0, < 3.1.0 2.36.0, 3.1.0
  3. Mittel CVE-2026-49210 >= 2.8.0, < 2.36.0, >= 3.0.0, < 3.1.0 2.36.0, 3.1.0
  4. Niedrig CVE-2026-49209 >= 2.5.0, < 2.36.0, >= 3.0.0, < 3.1.0 2.36.0, 3.1.0
  5. Mittel CVE-2026-49208 >= 2.8.0, < 2.36.0, >= 3.0.0, < 3.1.0 2.36.0, 3.1.0

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.