Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker submits XSS payload via user-controlled input field
-
DeliveryPayload persists in application data store
-
ExploitVictim loads page with AJAX autocomplete widget
-
ExecutionBrowser requests AJAX endpoint returning malicious text field
-
PersistStimulus controller interpolates unescaped value into DOM template literal
-
ImpactInjected 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (https://github.com/symfony/ux).
CVSS VectorVendor: https://github.com/symfony/ux
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-45216
GHSA-mwqm-4fw3-cjvr
NVD
CVE.org
EPSS
Exploit-DB