drupal/image_field_caption - SA-CONTRIB-2022-036
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/image_field_caption | < 1.2.0 | 1.2.0 |
| Drupal module | drupal/image_field_caption | < 1.2.0 | 1.2.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/image_field_caption- Disclosed
- 04.05.2022
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2022-036 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/image_field_caption
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.