symfony/ux-autocomplete
Affected
- introduced
0, fixed2.11.2(ecosystem)
Fixed versions
2.11.2
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2023-41336
Prevent injection of invalid entity ids for "autocomplete" fields
Impact
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;AND
EntityType 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.
Patches
The problem has been fixed in symfony/ux-autocomplete version 2.11.2.
Workarounds
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.
Medium Basis: The source's own band: MODERATE
0, fixed 2.11.2 (ecosystem)2.11.2
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0