Skip to content
OpenAdvisories
Unscored DRUPAL-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…

Published May 4, 2022 · Updated Sep 10, 2026 · Assigned by DRUPAL

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.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist drupal/image_field_caption < 1.2.0 1.2.0 DRUPAL-CONTRIB-2022-036

References