VDB
Sign up
—

DRUPAL-CONTRIB-2025-069

Details

This module integrates Drupal with LightGallery, enabling the use of the LightGallery library with any image field or view.

The module does not adequately sanitize user input in the image field’s "alt" attribute, potentially allowing cross-site scripting (XSS) attacks when tags or scripts are inserted.

This vulnerability is partially mitigated by the requirement that an attacker must have permission to create content containing an image field configured to use the LightGallery format.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist:https://packages.drupal.org/8/drupal/lightgallery
Introduced in: 0Fixed in: 1.6.0

Upgrade drupal/lightgallery to 1.6.0 or newer (ecosystem packagist:https://packages.drupal.org/8).

References