DRUPAL-CONTRIB-2022-036 Image Field Caption (`image_field_caption`) adds an extra text area for captions on image fields.
An authenticated user with specific permissions can inject malicious scripts via image captions, potentially compromising other users' sessions.
- 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-2022-036?
DRUPAL-CONTRIB-2022-036 is a cross-site scripting vulnerability in drupal/image_field_caption, published on 4 May 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Image Field Caption (image_field_caption) adds an extra text area for captions on image fields.
The module doesn't sanitize user input in certain cases, which leads to a Cross-Site-Scripting (XSS) vulnerability.
The vulnerability is mitigated by several permissions, of which at least some are commonly only assigned to either editors, site builders or administrators.
Which versions are affected by DRUPAL-CONTRIB-2022-036?
Linux distribution packages (1)
drupal/image_field_caption Packagist:https://packages.drupal.org/8 | All versions | 1.2.0 |
How do I fix DRUPAL-CONTRIB-2022-036?
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-2022-036 being exploited?
There is no known exploitation of DRUPAL-CONTRIB-2022-036 in the wild and no public exploit code.