Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/ux-live-component
  4. ›
  5. CVE-2026-49215

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

June 19, 2026

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-live-component/CVE-2026-49215.yaml
  • github.com/advisories/GHSA-4m4j-hmqq-3gxm
  • github.com/symfony/ux/commit/aed7493db2b4b7bf1f9c79b33cda544f06904b27
  • github.com/symfony/ux/security/advisories/GHSA-4m4j-hmqq-3gxm
  • nvd.nist.gov/vuln/detail/CVE-2026-49215

Code Behaviors & Features

Detect and mitigate CVE-2026-49215 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.22.0 before 2.36.0, all versions starting from 3.0.0 before 3.1.0

Fixed versions

  • 2.36.0
  • 3.1.0

Solution

Upgrade to versions 2.36.0, 3.1.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

packagist/symfony/ux-live-component/CVE-2026-49215.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.