DRUPAL-CONTRIB-2023-026 This module enables you to use complex autocompletion in forms.
A malicious user with publishing permissions can inject scripts via autocomplete fields, leading to Cross-Site Scripting attacks against other users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is DRUPAL-CONTRIB-2023-026?
DRUPAL-CONTRIB-2023-026 is a cross-site scripting vulnerability in drupal/search_autocomplete, published on 28 Jun 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
This module enables you to use complex autocompletion in forms.
The module doesn't sufficiently filter text in the data it exposes, allowing a malicious user to enter specially crafted tags to exploit a Cross Site Scripting (XSS) attack.
This vulnerability is mitigated by the fact that an attacker must have a role which allows them to publish the kind of data used in the autocomplete (for instance create nodes if the tool is used to search nodes, comments if the tool is used to search comments, etc…)
Which versions are affected by DRUPAL-CONTRIB-2023-026?
Linux distribution packages (1)
drupal/search_autocomplete Packagist:https://packages.drupal.org/8 | All versions | 2.0.3 |
How do I fix DRUPAL-CONTRIB-2023-026?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is DRUPAL-CONTRIB-2023-026 being exploited?
There is no known exploitation of DRUPAL-CONTRIB-2023-026 in the wild and no public exploit code.