CVE-2025-48922 in GLightboxinfo

Summary

by MITRE • 06/26/2025

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal GLightbox allows Cross-Site Scripting (XSS).This issue affects GLightbox: from 0.0.0 before 1.0.16.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 06/27/2025

The vulnerability identified as CVE-2025-48922 represents a critical cross-site scripting flaw within the Drupal GLightbox module, specifically impacting versions prior to 1.0.16. This weakness resides in the improper neutralization of input during web page generation processes, creating an avenue for malicious actors to inject and execute arbitrary JavaScript code within the context of affected user sessions. The vulnerability manifests when the GLightbox module fails to adequately sanitize user-supplied data before incorporating it into dynamically generated web content, thereby exposing Drupal installations to persistent XSS attacks that can compromise user integrity and session security.

The technical exploitation of this vulnerability occurs through the manipulation of input parameters that are processed by the GLightbox module's web page generation mechanisms. When user-provided content containing malicious scripts is accepted and rendered without proper sanitization, attackers can craft payloads that execute in the browsers of unsuspecting users who view the affected content. This flaw directly maps to CWE-79, which categorizes cross-site scripting vulnerabilities as weaknesses in input validation and output encoding. The vulnerability's impact extends beyond simple script execution as it can enable session hijacking, credential theft, and the potential for further exploitation within the target environment.

From an operational perspective, the vulnerability presents significant risks to Drupal installations that utilize the GLightbox module, particularly in environments where user-generated content is permitted or where administrators fail to implement proper input validation measures. The attack surface expands when considering that many Drupal sites allow users to upload media files or enter content through forms that may be processed by GLightbox, creating multiple potential entry points for malicious actors. This vulnerability can be leveraged by attackers to bypass security controls, escalate privileges, or redirect users to malicious websites as outlined in the ATT&CK framework under technique T1531 for credential access and T1059 for execution through scripting.

Organizations utilizing affected versions of the GLightbox module should prioritize immediate remediation through the upgrade to version 1.0.16 or later, which incorporates proper input sanitization and output encoding mechanisms. Additional mitigations include implementing Content Security Policy headers to restrict script execution, conducting thorough input validation on all user-supplied data, and monitoring for suspicious activity related to media uploads or content creation. Security teams should also consider implementing web application firewalls to detect and block potential XSS payloads, while ensuring that all Drupal installations maintain up-to-date core and module versions to prevent similar vulnerabilities from emerging. The remediation process must include comprehensive testing to verify that the patch does not introduce regressions in functionality while maintaining the security posture of the overall Drupal environment.

Responsible

Drupal

Reservation

05/28/2025

Disclosure

06/26/2025

Moderation

accepted

EPSS

0.00215

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!