{"id":"CVE-2026-49211","aliases":["CVE-2026-49211","GHSA-946h-jp5c-8fvh"],"related":[],"kind":"vulnerability","state":"published","title":"Symfony UX: Information exposure via unescaped LIKE wildcards in EntitySearchUtil","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Description\n\n`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.\n\nBecause `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.\n\n### Resolution\n\n`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.\n\nThe patch for this issue is available [here](https://github.com/symfony/ux/commit/725ab3d40689c91ff19ad2d01940a30007769214) for branch 2.x (and forward-ported to 3.x).\n\n### Credits\n\nSymfony would like to thank Pascal Cescon for reporting the issue and providing the fix.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-19T19:34:53.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.1.0","status":"affected"},{"version":">= 2.2.0, < 2.36.0","status":"affected"}],"vendor":"symfony","product":"ux","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.36.0"}],"ecosystem":"Packagist","package":"symfony/ux-autocomplete","purl":"pkg:composer/symfony/ux-autocomplete","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.1.0"}],"ecosystem":"Packagist","package":"symfony/ux-autocomplete","purl":"pkg:composer/symfony/ux-autocomplete","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.2.0","fixed":"2.36.0"},{"status":"affected","version":"3.0.0"}],"vendor":"symfony","product":"ux","cpe":"cpe:2.3:a:symfony:ux:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/symfony/ux/security/advisories/GHSA-946h-jp5c-8fvh","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/ux/commit/725ab3d40689c91ff19ad2d01940a30007769214","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/ux/releases/tag/v2.36.0","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/symfony/ux/releases/tag/v3.1.0","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-autocomplete/CVE-2026-49211.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/ux","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-17T16:41:23.015Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49211","url":"https://www.cve.org/CVERecord?id=CVE-2026-49211","licence":"CVE Terms of Use","modified":"2026-07-17T16:41:33.402Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-946h-jp5c-8fvh","url":"https://github.com/advisories/GHSA-946h-jp5c-8fvh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:49.104Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49211","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49211","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:28.497Z","epss":{"score":0.00531,"percentile":0.38367,"date":"2026-11-30T12:00:22.000Z"}}