drupal/lightgallery - SA-CONTRIB-2025-069
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/lightgallery | < 1.6.0 | 1.6.0 |
| Drupal module | drupal/lightgallery | < 1.6.0 | 1.6.0 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- Composer, Drupal
- Package
drupal/lightgallery- Disclosed
- 21.05.2025
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - GHSA-w5px-5878-m9x4 - CC BY 4.0
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2025-069 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/lightgallery
All published vulnerabilities of this package (Drupal module), 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.