/

CVE-2026-49211

Severity:

HIGH RISK

(7.5)

Information Exposure (CWE-200) in Symfony UX Autocomplete

CVE-2026-49211

Analyzed

Vulnerability type

Category:

Information Exposure through Search Oracle

CWE:

CWE-200

Impact:

Data Disclosure via Search Oracle and Pattern Matching

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

An information exposure flaw in Symfony UX Autocomplete allows client-supplied search queries to be embedded into SQL LIKE clauses without properly handling wildcard characters.

This enables unauthenticated users to abuse the public autocomplete endpoint as a broad matcher or blind boolean oracle over multiple columns, potentially revealing sensitive data patterns and existence of records when the endpoint is exposed.

Affected context

The vulnerability arises in applications using Symfony UX Autocomplete with Doctrine, specifically relying on BaseEntityAutocompleteType and EntitySearchUtil::addSearchClause() for server-side search.

It is relevant when:

  • The public autocomplete endpoint is exposed to unauthenticated or broadly authenticated users
  • Default searchable_fields include columns that convey sensitive or business-critical information
  • Client queries are directly mapped into SQL LIKE conditions without customized escaping or stricter filtering

Exploit preconditions

  • Attack surface: Public or semi-public HTTP endpoints using Symfony UX Autocomplete with Doctrine-based entity search.
  • Required access: Ability to send arbitrary autocomplete queries (often unauthenticated).
  • Trigger point: Submission of crafted search strings that leverage %, _, and \ in the LIKE pattern.
  • Why exploitation is possible: The search utility wraps the raw client query with %...% but does not escape SQL LIKE wildcards, enabling broad pattern matching and boolean probing across configured searchable_fields.

Why this happens

The core issue is how the autocomplete search clause is constructed in EntitySearchUtil::addSearchClause().

Instead of treating user input strictly as literal text, the implementation composes SQL LIKE expressions by surrounding the query with % characters and omitting proper escaping of wildcard meta-characters (%, _, \).

This aligns with CWE-200: Information Exposure, because it turns a convenience search feature into an oracle that can reveal whether certain values or patterns exist in database columns, effectively leaking internal data characteristics through the endpoint's responses.

Potential impact

  • Attackers may infer whether specific records exist based on autocomplete matches.
  • Attackers can broadly enumerate patterns across all default searchable_fields.
  • Sensitive business data (such as internal identifiers, flags, or status fields) could be indirectly revealed via match/no-match behavior.
  • Application data models and relationships can be mapped more easily, aiding further targeted attacks.

General mitigation guidance

Mitigation typically focuses on constraining how search input is translated into database queries and what fields are exposed:

  • Apply strict escaping of SQL LIKE wildcard characters (%, _, \) before building search clauses so input is treated as literal text.
  • Limit searchable_fields to non-sensitive, user-facing attributes and avoid including internal or confidential columns.
  • Add server-side constraints such as minimum query length, rate limiting, and normalization to reduce oracle-style probing.
  • Enforce defense-in-depth by restricting public autocomplete endpoints to appropriate user roles and avoiding overly broad search scopes by default.

How teams detect issues like this

Detection can be approached by:

  • Static analysis or manual code review to identify search utilities that wrap user input in SQL LIKE patterns without proper escaping.
  • Reviewing configuration of autocomplete endpoints to spot overly broad or sensitive searchable_fields.
  • Logging and analyzing autocomplete traffic for patterns indicative of oracle-style probing (e.g., systematic wildcard testing or enumeration).
  • Incorporating security checks into CI pipelines that flag direct use of user input in search clauses without normalization or escaping policies.

Sources

SourceLink
github.comgithub.com/symfony/ux/commit/725ab3d40689c91ff19ad2d01940a30007769214
github.comgithub.com/symfony/ux/releases/tag/v2.36.0
github.comgithub.com/symfony/ux/releases/tag/v3.1.0
github.comgithub.com/symfony/ux/security/advisories/GHSA-946h-jp5c-8fvh

Frequently asked

questions

No. The issue does not primarily enable arbitrary SQL execution, but rather abuses unescaped LIKE wildcard handling to create a powerful search oracle that exposes information about underlying data.

In many deployments, the autocomplete endpoint is public or lightly protected, so unauthenticated users can send crafted queries. Actual requirements depend on how the endpoint is integrated and secured in the application.

Treat all search terms as literal input by properly escaping SQL LIKE meta-characters, and restrict autocomplete functionality to non-sensitive fields that are intended for user-facing search.

Establish a standard search abstraction that always escapes or parameterizes user input, regularly review exposed search endpoints, and enforce a policy that only safe, non-sensitive fields are searchable through public interfaces.

Find out what's already
exploitable in your codebase.