CVE-2026-49210

Symfony UX: XSS in symfony/ux-live-component via attacker-controlled child component tag

Published Jul 17, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
Symfony UX is a JavaScript ecosystem for Symfony. From 2.8.0 until 2.36.0 and 3.1.0, Symfony\UX\LiveComponent\Util\ChildComponentPartialRenderer::createHtml() interpolates the client-controlled children[id].tag value from LiveComponentSubscriber and InterceptChildComponentRenderSubscriber directly into HTML as a tag name without escaping or validation, allowing arbitrary HTML, including <script> tags, on any Live Component re-render that contains at least one child component. This issue is fixed in versions 2.36.0 and 3.1.0.

Analysis

AI-generated

Technical impact

Symfony UX LiveComponent rendering is affected because the createHtml() function interpolates the client‑controlled children[id].tag value directly into the HTML as a tag name without escaping or validation. This allows an attacker to supply arbitrary HTML, such as <script> tags, so that any LiveComponent re‑render containing at least one child component can inject malicious content. The injected code is reflected in the users’ browsers, providing a client‑side XSS vector.

Affected Systems

Any application using Symfony/UX library version 2.8.0 through 2.35.x, or any 3.0.x release, where LiveComponentSubscriber and InterceptChildComponentRenderSubscriber are active is vulnerable. The issue is fixed in library releases 2.36.0 and 3.1.0.

Risk and Exploitability

The vulnerability has a CVSS score of 2.3 and an EPSS score of less than 1 %. It is not listed in the CISA KEV catalog. Based on the description, it is inferred that exploitation requires an attacker to control the child component tag value that will be rendered; this is usually possible via user input that triggers a LiveComponent re‑render. Because the attack only injects client‑side code, the impact is limited to victim browsers and is mitigated by applying the fix or validating the tag name.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Symfony/UX to version 2.36.0 or higher, or 3.1.0 or higher, where the child component tag is validated and escaped.
  • If upgrading is not immediately possible, implement server‑side validation of the child component tag names, allowing only a whitelist of known safe tags such as div, span, p, etc., before they are rendered.
  • Configure or modify the LiveComponentSubscriber to reject or sanitize any child component tag that is not on the whitelist, ensuring that no arbitrary tags are emitted into the HTML output.

Generated by OpenCVE AI on July 31, 2026 at 00:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-38x5-rcv4-xf7x symfony/ux-live-component: XSS via attacker-controlled child component tag
History
Type Values Removed Values Added
First Time appeared Symfony
Symfony ux
Vendors & Products Symfony
Symfony ux
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Symfony UX is a JavaScript ecosystem for Symfony. From 2.8.0 until 2.36.0 and 3.1.0, Symfony\UX\LiveComponent\Util\ChildComponentPartialRenderer::createHtml() interpolates the client-controlled children[id].tag value from LiveComponentSubscriber and InterceptChildComponentRenderSubscriber directly into HTML as a tag name without escaping or validation, allowing arbitrary HTML, including <script> tags, on any Live Component re-render that contains at least one child component. This issue is fixed in versions 2.36.0 and 3.1.0.
Title Symfony UX: XSS in symfony/ux-live-component via attacker-controlled child component tag
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 17, 2026, 4:52 PM
Reserved
May 28, 2026, 3:42 AM
Status
Analyzed
Published
Jul 17, 2026, 5:17 PM
Modified
Oct 24, 2026, 8:10 PM