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.
Published: 2026-07-17
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Symfony UX autocomplete component, specifically within the _createAutocompleteWithRemoteData method of symfony/ux‑autocomplete. The method renders AJAX response items by interpolating the supplied label field into HTML template literals (<div>${item[labelField]}</div>) rather than escaping it. Because the injected value comes from user‑supplied dropdown data, an attacker who can influence that data can insert arbitrary HTML or JavaScript that will be executed in the browsers of any user who opens the autocomplete widget. This client‑side injection flaw is classified as CWE‑79 and was remedied in releases 2.36.0 and 3.1.0, which now escape the label before rendering.

Affected Systems

The vulnerability resides in the Autocomplete component of Symfony UX (symfony/ux‑autocomplete). Versions starting with 2.2.0 and up through 2.35.x, as well as the 3.x lineage prior to 3.1.0, contain the flaw. The patch that removes the vulnerability is delivered in releases 2.36.0 and 3.1.0, which should be used instead.

Risk and Exploitability

The CVSS score of 5.1 classifies this issue as moderate severity. The EPSS score is below 1 %, indicating a low likelihood of exploitation at present, and it is not listed in the CISA KEV catalog. An attacker’s ability to exploit it depends on control over the data supplied to the autocomplete; if the data source can be compromised, the attacker can inject arbitrary markup that will run in the browsers of all users who view the widget.

Generated by OpenCVE AI on July 31, 2026 at 00:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade symfony/ux-autocomplete to version 2.36.0 or newer, or to 3.1.0 or newer, which contain the fix.
  • Sanitize or escape all values sent to the autocomplete data source to prevent malicious markup from being rendered.
  • If CSP is used in the application, configure a strict policy that disallows inline scripts and eval to reduce the impact of any residual unchecked payloads.

Generated by OpenCVE AI on July 31, 2026 at 00:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mwqm-4fw3-cjvr symfony/ux-autocomplete: XSS via unescaped AJAX response data
History

Tue, 21 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony ux
Vendors & Products Symfony
Symfony ux

Fri, 17 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title Symfony UX: XSS in symfony/ux-autocomplete via unescaped AJAX response data
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.1, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-21T01:44:13.539Z

Reserved: 2026-05-28T03:42:34.341Z

Link: CVE-2026-49216

cve-icon Vulnrichment

Updated: 2026-07-21T01:44:09.478Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T00:15:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')