Intel

AIKIDO-2026-11055

symfony/ux-autocomplete is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-49216Published Jun 3, 2026
June 3, 2026

61

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The Symfony UX Autocomplete Stimulus controller renders the text field from AJAX endpoint responses directly into the dropdown using template literals in _createAutocompleteWithRemoteData(), without HTML escaping. Any attacker-influenced data that reaches an entity rendered by the autocomplete can inject HTML and JavaScript that executes in the browser of users viewing the field. The fix routes the value through TomSelect's escape() helper by default and introduces an explicit options_as_html opt-in for endpoints that legitimately return HTML.

How do I fix this?

Upgrade the symfony/ux-autocomplete library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 2.35.0

Fixed in 2.36.0

3.0.0 - 3.0.0

Fixed in 3.1.0

Background info

symfony/ux-autocomplete is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2.35.0 and 3.0.0 - 3.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea