Vulnerability · Published Jul 17, 2026 · Assigned by GitHub_M
CVE-2026-49216Symfony UX: XSS in symfony/ux-autocomplete via unescaped AJAX response data
Medium 5.1
In plain English
A medium-severity cross-site scripting in ux from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | symfony/ux-autocomplete | 2.36.0 | GHSA-mwqm-4fw3-cjvr |
| Packagist | symfony/ux-autocomplete | 3.1.0 | GHSA-mwqm-4fw3-cjvr |
Affected products (as reported)
Weakness: CWE-79 · 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
References
- https://github.com/symfony/ux/security/advisories/GHSA-mwqm-4fw3-cjvr x_refsource_CONFIRM
- https://github.com/symfony/ux/commit/842ae54bc74de389299f975f01aafae272cb0019 x_refsource_MISC
- https://github.com/symfony/ux/releases/tag/v2.36.0 x_refsource_MISC
- https://github.com/symfony/ux/releases/tag/v3.1.0 x_refsource_MISC