Skip to main content

Symfony UX LiveComponent EUVDEUVD-2026-45218

| CVE-2026-49215 LOW
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-06-19 https://github.com/symfony/ux GHSA-4m4j-hmqq-3gxm
2.1
CVSS 4.0 · Vendor: https://github.com/symfony/ux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim loads attacker-controlled page
  2. Delivery
    Cross-origin fetch() crafted with Accept header
  3. Exploit
    Browser skips CORS preflight (safelisted header)
  4. Execution
    Server validates only Accept header, accepts request
  5. Persist
    LiveAction method executes under victim session
  6. Impact
    Unauthorized server-side state mutation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following: (1) the target application runs symfony/ux-live-component >= 2.22.0,< 2.36.0 or >= 3.0.0, < 3.1.0 without the patch applied; (2) the application exposes at least one method annotated with #[LiveAction] that performs meaningful state mutation; and (3) the victim's session cookie is not protected by SameSite=Lax or SameSite=Strict - specifically, the application must use SameSite=None, or the attacker must have a same-origin foothold (e.g., stored XSS on the same domain) to bypass Lax restrictions. The critical limiting factor for most deployments is Symfony's default SameSite=Lax cookie configuration, which prevents cross-site cookie attachment for AJAX/fetch requests and blocks the primary attack path. Applications that have explicitly opted into SameSite=None - typically to support cross-site embedding or third-party integrations - receive no such protection and are directly exploitable with a simple cross-origin fetch() call carrying only the Accept header.

Impact

No CVSS score was provided by NVD or the vendor for this CVE; the assessed vector below is analyst-derived. The vulnerability is not listed in the CISA KEV catalog and no public proof-of-concept has been identified, so real-world exploitation probability is currently low. The most significant limiting factor for most deployments is Symfony's default SameSite=Lax session cookie policy: Lax prevents cross-site cookie attachment for non-navigational requests (fetch, XHR), blocking the majority of cross-origin CSRF attack paths. Risk is materially elevated for applications that have opted into SameSite=None cookies (common for embedded or iframe scenarios), use credentials: 'include' with a permissive CORS policy, or are exposed to a same-origin attack vector such as a stored XSS that could serve as a pivot. The impact of successful exploitation depends entirely on what #[LiveAction] methods are exposed - ranging from low (toggling UI state) to high (submitting forms, deleting records, changing account data). Because SameSite=Lax is a deployment-time control rather than a code-level defense, the underlying vulnerability remains real for a meaningful subset of production deployments.

Exploit ScenarioDerived

An attacker hosts a web page containing a script that calls fetch('https://victim-app.example.com/live-component-endpoint', { method: 'POST', credentials: 'include', headers: { 'Accept': 'application/vnd.live-component+html' }, body: '...' }). If the victim browses to this page while authenticated and their session cookie is configured with SameSite=None (or the attacker controls same-origin content via XSS), the browser attaches the victim's session cookie without issuing a CORS preflight, and the server processes the forged #[LiveAction] call as if it originated legitimately from the victim's browser. No public proof-of-concept code has been identified at the time of this analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

CSRF protection bypass in symfony/ux-live-component allowed cross-origin invocation of any server-side #[LiveAction] method against an authenticated victim's session. The library incorrectly relied on the Accept: application/vnd.live-component+html header as a CSRF guard, but per the Fetch specification §3.2.2 this is a CORS-safelisted header, meaning cross-origin fetch() calls can include it without triggering a preflight OPTIONS request. Applications using SameSite=None cookies or those reachable via a same-origin pivot (e.g., XSS on the same domain) are genuinely exposed; Symfony's default SameSite=Lax policy substantially mitigates the risk for standard deployments. No public exploit has been identified and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade symfony/ux-live-component to version 2.36.0 (for 2.x installations) or 3.1.0 (for 3.x installations). These versions add a mandatory X-Requested-With: XMLHttpRequest header check in isLiveComponentRequest(); the bundled Stimulus controller (RequestBuilder.ts) already sends this header on every LiveComponent request, so standard usage requires no client-side changes. The patch commit is available at https://github.com/symfony/ux/commit/aed7493db2b4b7bf1f9c79b33cda544f06904b27. If immediate upgrade is not possible, the most effective compensating control is to confirm session cookies are configured with SameSite=Lax (Symfony's default) - this blocks the majority of cross-origin CSRF paths at the browser layer, though it does not protect against same-origin pivots such as stored XSS. Applications that require SameSite=None for cross-site embedding should treat upgrade as urgent. Note a minor breaking change: any custom cross-origin callers of LiveComponent endpoints must add X-Requested-With to their CORS Access-Control-Allow-Headers allow-list or their requests will begin failing preflight checks after the upgrade. The GitHub Security Advisory is at https://github.com/symfony/ux/security/advisories/GHSA-4m4j-hmqq-3gxm.

Affected VersionsENISA

ux 3.0.0, < 3.1.0
ux 2.22.0, < 2.36.0

Affected Packages

composer symfony/ux-live-component fix: 2.36.0, 3.1.0
euvd ux_2_22_0 fix: 2.36.0
euvd ux_3_0_0 fix: 3.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

symfony/ux-live-component (pkg:composer/symfony/ux-live-component) is a Symfony UX package that implements reactive, AJAX-driven server-side components using a Stimulus JavaScript controller. Methods on component classes annotated with #[LiveAction] are invokable from the browser via AJAX, mutating server-side state. The LiveComponentSubscriber::isLiveComponentRequest() method in src/LiveComponent/src/EventListener/LiveComponentSubscriber.php gated these invocations on the presence of a custom Accept header value (application/vnd.live-component+html), with a code comment explicitly describing this as CSRF protection. The flaw (CWE-352, Cross-Site Request Forgery) is a design error: the Fetch specification lists Accept as a CORS-safelisted request header, which means a browser will dispatch a cross-origin fetch() containing that header without first issuing a preflight OPTIONS request. Without a preflight, the browser attaches the victim's session cookies, and the server sees a structurally valid LiveComponent request from an arbitrary origin. The fix adds a mandatory check for X-Requested-With: XMLHttpRequest, a non-safelisted header that forces a preflight for any cross-origin caller; since Symfony does not advertise CORS for LiveComponent endpoints the preflight fails, blocking the forged request before it reaches application logic.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/symfony/ux) PRIMARY 2.1 LOW
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
vuln.today AI 4.3 MEDIUM

Network-delivered CSRF requiring active victim interaction (UI:R, PR:N); integrity-only impact since LiveActions mutate state without inherent data exfiltration.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/symfony/ux).

CVSS VectorVendor: https://github.com/symfony/ux

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 17, 2026 - 17:22 NVD
2.1 (LOW)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy