Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/ux-autocomplete
  4. ›
  5. CVE-2026-49216

CVE-2026-49216: symfony/ux-autocomplete: XSS via unescaped AJAX response data

June 19, 2026

The Stimulus controller shipped with symfony/ux-autocomplete renders AJAX response items into the dropdown by interpolating the text field directly into HTML template literals (<div>${item[labelField]}</div>) inside _createAutocompleteWithRemoteData(). The value is parsed as HTML rather than text, so any markup contained in the AJAX response is executed by the browser.

When the dropdown values are derived from user-supplied content, an attacker can craft a string that triggers stored XSS in the browser of any other user who later opens a page containing an autocomplete widget backed by the same data.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-autocomplete/CVE-2026-49216.yaml
  • github.com/advisories/GHSA-mwqm-4fw3-cjvr
  • github.com/symfony/ux/commit/842ae54bc74de389299f975f01aafae272cb0019
  • github.com/symfony/ux/security/advisories/GHSA-mwqm-4fw3-cjvr
  • nvd.nist.gov/vuln/detail/CVE-2026-49216

Code Behaviors & Features

Detect and mitigate CVE-2026-49216 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.2.0 before 2.36.0, all versions starting from 3.0.0 before 3.1.0

Fixed versions

  • 2.36.0
  • 3.1.0

Solution

Upgrade to versions 2.36.0, 3.1.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/symfony/ux-autocomplete/CVE-2026-49216.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:52 +0000.