{"id":"CVE-2026-49211","aliases":["GHSA-946h-jp5c-8fvh"],"url":"https://o3.security/vulnerability/CVE-2026-49211","summary":"Symfony UX: Information exposure via unescaped LIKE wildcards in EntitySearchUtil","details":"### 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.","published":"2026-07-17T16:14:29.271Z","modified":"2026-10-20T12:00:27.298922939Z","cvss":null,"epss":{"score":0.00531,"percentile":0.43659,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/ux-autocomplete","fixedVersion":"2.36.0"},{"ecosystem":"Packagist","name":"symfony/ux-autocomplete","fixedVersion":"3.1.0"}],"fix":{"url":"https://github.com/symfony/ux/commit/725ab3d40689c91ff19ad2d01940a30007769214","label":"symfony/ux@725ab3d"},"references":[{"type":"WEB","url":"https://github.com/symfony/ux/releases/tag/v2.36.0"},{"type":"WEB","url":"https://github.com/symfony/ux/releases/tag/v3.1.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49211.json"},{"type":"ADVISORY","url":"https://github.com/symfony/ux/security/advisories/GHSA-946h-jp5c-8fvh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49211"},{"type":"FIX","url":"https://github.com/symfony/ux/commit/725ab3d40689c91ff19ad2d01940a30007769214"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-autocomplete/CVE-2026-49211.yaml"},{"type":"PACKAGE","url":"https://github.com/symfony/ux"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T12:00:27.298922939Z"}}