CVE Catalog

CVE-2026-49216

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.18%

8th percentile - higher than 8% of all known CVEs

Summary

A vulnerability in Symfony UX (symfony/ux-autocomplete) allows HTML and JavaScript injection by an attacker. The issue occurs in the _createAutocompleteWithRemoteData() method, where AJAX response values are interpolated directly into HTML template literals instead of being treated as text. Affected versions are from 2.2.0 to 2.36.0 and 3.1.0.

Risk Assessment

An attacker can supply malicious values to an autocomplete dropdown, which, when displayed to another user, will execute JavaScript in their browser. This can lead to session theft, account takeover, or other XSS attacks.

Recommendation

Immediately update the symfony/ux-autocomplete library to version 2.36.0 or 3.1.0 (depending on the branch used). After updating, verify the autocomplete functionality in your application.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS