{"id":"GHSA-4cpv-669c-r79x","aliases":["CVE-2023-41336"],"title":"Prevent injection of invalid entity ids for \"autocomplete\" fields","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"### 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","severity":"medium","score":6.5,"published":"2023-09-11T14:43:05.000Z","modified":"2026-09-10T03:50:03.208Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"symfony/ux-autocomplete","sources":[{"name":"OSV · GHSA-4cpv-669c-r79x","url":"https://osv.dev/vulnerability/GHSA-4cpv-669c-r79x"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.11.2"}],"type":"ECOSYSTEM"}],"versions":["v2.10.0","v2.11.0","v2.11.1","v2.2.0","v2.3.0","v2.4.0","v2.5.0","v2.6.0","v2.6.1","v2.7.0","v2.7.1","v2.8.0","v2.8.1","v2.9.0","v2.9.1"],"fixed":["2.11.2"]}],"sourceAffected":[],"references":["https://github.com/symfony/ux-autocomplete/security/advisories/GHSA-4cpv-669c-r79x","https://nvd.nist.gov/vuln/detail/CVE-2023-41336","https://github.com/symfony/ux-autocomplete/commit/fabcb2eee14b9e84a45b276711853a560b5d770c","https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/ux-autocomplete/CVE-2023-41336.yaml","https://github.com/symfony/ux-autocomplete","https://symfony.com/bundles/ux-autocomplete/current/index.html#usage-in-a-form-with-ajax"],"sources":[{"name":"OSV","id":"GHSA-4cpv-669c-r79x","modified":"2026-09-10T03:50:03.208668376Z","url":"https://osv.dev/vulnerability/GHSA-4cpv-669c-r79x"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T20:20:32.181Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}