Under certain circumstances, an attacker could successfully submit an entity id for an EntityType that is not part of the valid choices.
Affected applications are any that use:
query_builder option to limit the valid results;
ANDEntityType with 'autocomplete' => true or a custom AsEntityAutocompleteField.Under this circumstance, if an id is submitted, it is accepted even if the matching record would not be returned by the custom query built with query_builder.
The problem has been fixed in symfony/ux-autocomplete version 2.11.2.
Upgrade to version 2.11.2 or greater of symfony/ux-autocomplete or perform extra validation after submit to verify the selected option is valid.
{
"nvd_published_at": "2023-09-11T20:15:10Z",
"cwe_ids": [
"CWE-20"
],
"severity": "MODERATE",
"github_reviewed_at": "2023-09-11T14:43:05Z",
"github_reviewed": true
}