CVE-2026-49211: symfony/ux-autocomplete Information Exposure Vulnerability

MODERATE
Advisory Identifier: GHSA-946h-jp5c-8fvh
CWE-200
Published
Advisory Summary

CVE-2026-49211 is a MODERATE information exposure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting symfony/ux-autocomplete libraries in the Packagist ecosystem. The issue involves information exposure via unescaped like wildcards in entitysearchutil. Remediation is available by upgrading affected packages to version 2.36.0, 3.1.0.

CVE-2026-49211 at a Glance

CVE Identifier CVE-2026-49211
GHSA Identifier GHSA-946h-jp5c-8fvh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product symfony/ux-autocomplete
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-49211

To remediate this vulnerability, upgrade all affected symfony/ux-autocomplete dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/ux-autocomplete fixed: 2.36.0
Upgrade symfony/ux-autocomplete to 2.36.0
symfony/ux-autocomplete fixed: 3.1.0
Upgrade symfony/ux-autocomplete to 3.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/ux-autocomplete

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-49211, inspect your project dependencies for symfony/ux-autocomplete:

inspect dependencies for symfony/ux-autocomplete

Analyze the terminal output to locate any version of symfony/ux-autocomplete in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.36.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In symfony/ux-autocomplete, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/symfony/ux/commit/725ab3d40689c91ff19ad2d01940a30007769214) 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.

CVE-2026-49211 Affected symfony/ux-autocomplete Versions

2 component(s)
Fixed Versions:
2.36.03.1.0
Product / Package Ecosystem Affected Versions Fixed Version
symfony/ux-autocomplete
Packagist
≥ 2.2.0
< 2.36.0
2.36.0
symfony/ux-autocomplete
Packagist
≥ 3.0.0
< 3.1.0
3.1.0

References

Frequently Asked Questions

What is CVE-2026-49211?
CVE-2026-49211 is a security vulnerability in symfony/ux-autocomplete involving Information exposure via unescaped LIKE wildcards in EntitySearchUtil under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which symfony/ux-autocomplete versions are affected?
Affected versions include releases prior to 2.36.0, 3.1.0 across affected packages: symfony/ux-autocomplete.
What version fixes CVE-2026-49211?
Upgrading to 2.36.0, 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/ux-autocomplete affected?
Yes, symfony/ux-autocomplete is affected in releases prior to 2.36.0, 3.1.0. Upgrade your dependency to 2.36.0, 3.1.0 or later.
What CWE is associated with CVE-2026-49211?
CVE-2026-49211 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for CVE-2026-49211?
Run the dependency tree command: 'inspect dependencies for symfony/ux-autocomplete'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-946h-jp5c-8fvh",
  "modified" : "2026-06-19T19:34:53Z",
  "published" : "2026-06-19T19:34:53Z",
  "aliases" : [ "CVE-2026-49211" ],
  "summary" : "symfony/ux-autocomplete: 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/ux-autocomplete"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.36.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/ux-autocomplete"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/ux/security/advisories/GHSA-946h-jp5c-8fvh"
  }, {
    "type" : "WEB",
    "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T19:34:53Z",
    "nvd_published_at" : null
  }
}