symfony/ux-live-component is vulnerable to Cross Site Scripting (XSS)
54
CVE Score
Medium
Cross Site Scripting (XSS)
Symfony UX LiveComponent's ChildComponentPartialRenderer::createHtml() interpolates the $childTag value directly into HTML without escaping or validation. The value comes from the client-supplied children[id].tag field handled by LiveComponentSubscriber and InterceptChildComponentRenderSubscriber, so an attacker who can reach the Live Component endpoint can inject arbitrary HTML, including <script> tags, on any re-render of a component that has a child component. The endpoint is normally protected by an Accept: application/vnd.live-component+html header check, but that gate can be bypassed via relaxed CORS or a same-origin XSS pivot. The fix validates $childTag against a strict HTML tag-name regex and rejects non-matching values.
Upgrade the symfony/ux-live-component library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
2.8.0 - 2.35.0
Fixed in 2.36.03.0.0 - 3.0.0
Fixed in 3.1.0symfony/ux-live-component is vulnerable to Cross Site Scripting (XSS) in versions 2.8.0 - 2.35.0 and 3.0.0 - 3.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.