{"id":"CVE-2023-41336","aliases":["GHSA-4cpv-669c-r79x"],"url":"https://o3.security/vulnerability/CVE-2023-41336","summary":"Prevent injection of invalid entity ids for \"autocomplete\" fields in symfony ux-autocomplete","details":"### Impact\nUnder certain circumstances, an attacker could successfully submit an entity id for an `EntityType` that is *not* part of the valid choices.\n\nAffected applications are any that use:\n\n* A custom `query_builder` option to limit the valid results;\nAND\n* An `EntityType` with `'autocomplete' => true` or a custom [AsEntityAutocompleteField](https://symfony.com/bundles/ux-autocomplete/current/index.html#usage-in-a-form-with-ajax).\n\nUnder 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`.\n\n### Patches\n\nThe problem has been fixed in `symfony/ux-autocomplete` version 2.11.2.\n\n### Workarounds\nUpgrade to version 2.11.2 or greater of `symfony/ux-autocomplete` or perform extra validation after submit to verify the selected option is valid.\n","published":"2023-09-11T19:21:48.938Z","modified":"2026-08-12T03:51:26.838873583Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/ux-autocomplete","fixedVersion":"2.11.2"}],"fix":{"url":"https://github.com/symfony/ux-autocomplete/commit/fabcb2eee14b9e84a45b276711853a560b5d770c","label":"symfony/ux-autocomplete@fabcb2e"},"references":[{"type":"WEB","url":"https://symfony.com/bundles/ux-autocomplete/current/index.html#usage-in-a-form-with-ajax"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/41xxx/CVE-2023-41336.json"},{"type":"ADVISORY","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-autocomplete/CVE-2023-41336.yaml"},{"type":"ADVISORY","url":"https://github.com/symfony/ux-autocomplete/security/advisories/GHSA-4cpv-669c-r79x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41336"},{"type":"FIX","url":"https://github.com/symfony/ux-autocomplete/commit/fabcb2eee14b9e84a45b276711853a560b5d770c"},{"type":"PACKAGE","url":"https://github.com/symfony/ux-autocomplete"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:26.838873583Z"}}