CVE-2026-49211
JSON

6.9medium

Symfony UX: Information exposure via unescaped LIKE wildcards in EntitySearchUtil

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.53% (higher than 38% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-946h-jp5c-8fvh

Description

Symfony UX is a JavaScript ecosystem for Symfony. From 2.2.0 until 2.36.0 and 3.1.0, Symfony\UX\Autocomplete\Doctrine\EntitySearchUtil::addSearchClause() builds the LIKE expression used by the autocomplete endpoint by wrapping the client-supplied query in %...% without escaping SQL LIKE wildcards (%, _, \), allowing unauthenticated users to turn the public BaseEntityAutocompleteType endpoint into a broad matcher or blind boolean oracle against every column in default searchable_fields. This issue is fixed in versions 2.36.0 and 3.1.0.

Affected

Product or packageVersionsReported by
symfony ux>= 3.0.0, < 3.1.0, >= 2.2.0, < 2.36.0, from 2.2.0 before 2.36.0, 3.0.0CVE List, NVD
symfony/ux-autocomplete (Packagist)from 2.2.0 before 2.36.0, from 3.0.0 before 3.1.0GitHub Advisory Database

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Symfony UX is a JavaScript ecosystem for Symfony. From 2.2.0 until 2.36.0 and 3.1.0, Symfony\UX\Autocomplete\Doctrine\EntitySearchUtil::addSearchClause() builds the LIKE expression used by the autocomplete endpoint by wrapping the client-supplied query in %...% without escaping SQL LIKE wildcards (%, _, \), allowing unauthenticated users to turn the public BaseEntityAutocompleteType endpoint into a broad matcher or blind boolean oracle against every column in default searchable_fields. This issue is fixed in versions 2.36.0 and 3.1.0.

GitHub Advisory Database
Description

Symfony\UX\Autocomplete\Doctrine\EntitySearchUtil::addSearchClause() builds the LIKE expression used by the autocomplete endpoint by wrapping the client-supplied query in %...% without escaping the SQL LIKE wildcards (%, _, \). The value is passed as a bound parameter, so this is not SQL injection, but a client can send % to match every row or use _ as a single-character wildcard.

Because searchable_fields defaults to every property of the entity and the autocomplete endpoint is public by default (BaseEntityAutocompleteType ships with security => false), an unauthenticated user can turn the endpoint into a broad matcher or a blind boolean oracle against every column of the entity, including columns the application never intended to expose.

Resolution

EntitySearchUtil now escapes \, %, and _ in the user-supplied query with addcslashes() and appends an explicit ESCAPE '\' clause to the generated LIKE expression, so those characters are matched literally. The exact-match words_query IN() branch is unchanged.

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

Credits

Symfony would like to thank Pascal Cescon for reporting the issue and providing the fix.

NVD (es)

Symfony UX es un ecosistema JavaScript para Symfony. Desde 2.2.0 hasta 2.36.0 y 3.1.0, Symfony\UX\Autocomplete\Doctrine\EntitySearchUtil::addSearchClause() construye la expresión LIKE utilizada por el endpoint de autocompletado al envolver la consulta proporcionada por el cliente en %...% sin escapar los comodines SQL LIKE (%, _, \), permitiendo a usuarios no autenticados convertir el endpoint público BaseEntityAutocompleteType en un emparejador amplio o un oráculo booleano ciego contra cada columna en los “searchable_fields” predeterminados. Este problema se corrige en las versiones 2.36.0 y 3.1.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-49211 changed 2026-07-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-946h-jp5c-8fvh changed 2026-09-10CC-BY-4.0
NVDCVE-2026-49211 changed 2026-10-24Public domain