CVE-2025-48447 Lightgallery - Moderately critical - Cross Site Scripting - SA-CONTRIB-2025-069
An attacker can inject malicious scripts into web pages viewed by other users via the Drupal Lightgallery module, potentially leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-48447?
CVE-2025-48447 is a high-severity cross-site scripting vulnerability in Drupal Lightgallery, published on 11 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Lightgallery allows Cross-Site Scripting (XSS).This issue affects Lightgallery: from 0.0.0 before 1.6.0.
Weakness: CWE-79
Which versions are affected by CVE-2025-48447?
2 open source packages ship an affected version, including drupal/lightgallery. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
drupal/lightgallery Packagist | All versions | 1.6.0 |
drupal/lightgallery Packagist | All versions | 1.6.0 |
Linux distribution packages (1)
drupal/lightgallery Packagist:https://packages.drupal.org/8 | All versions | 1.6.0 |
Products include Lightgallery Project Lightgallery.
How do I fix CVE-2025-48447?
Upgrade drupal/lightgallery to 1.6.0 or later.
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 CVE-2025-48447 being exploited?
There is no known exploitation of CVE-2025-48447 in the wild and no public exploit code.
Sources
Also known as DRUPAL-CONTRIB-2025-069, GHSA-w5px-5878-m9x4.