CVE-2026-16645

Drupal · PhotoSwipe - Responsive JavaScript Modal Image Gallery

A missing authorization vulnerability in the Drupal PhotoSwipe module allows unauthenticated attackers to perform forceful browsing, potentially leading to unauthorized data access and modification.

Executive summary

A critical missing authorization flaw in the Drupal PhotoSwipe module allows unauthenticated remote attackers to access restricted gallery data or modify configurations, posing a severe risk to site integrity.

Vulnerability

This vulnerability is a missing authorization flaw (CWE-862) that permits unauthenticated users to bypass access controls and engage in forceful browsing. The issue exists because the module fails to verify user permissions before granting access to sensitive gallery functions.

Business impact

The CVSS score of 9.1 underscores the severity of this vulnerability, as it allows unauthenticated attackers to gain unauthorized access to sensitive information or manipulate gallery content. Successful exploitation could lead to significant data breaches, unauthorized disclosure of private images, or the compromise of site administrative settings, resulting in reputational damage and potential loss of intellectual property.

Remediation

Immediate Action: Update the Drupal PhotoSwipe module to version 3.2.0 or the latest available release as provided by the vendor. If an update is not immediately available, disable the module until a secure version can be deployed.

Proactive Monitoring: Review web server and Drupal access logs for suspicious patterns, particularly requests directed toward gallery configuration endpoints or unauthorized path traversal attempts.

Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to block unauthorized access to administrative or sensitive module endpoints, effectively acting as a virtual patch until the module is updated.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Given the critical nature of this flaw and its potential for unauthenticated exploitation, administrators must prioritize the remediation of this module. Apply the necessary updates immediately to ensure that access control checks are correctly enforced and to prevent unauthorized access to the application environment.

More Drupal CVEs

Sources

Originally found and disclosed by Aleksi Peebles (aleksip), with Aleksi Peebles (aleksip) (remediation developer), Julian Pustkuchen (anybody) (remediation developer), Joshua Sedler (grevil) (remediation developer), cilefen (cilefen) (coordinator), Damien McKenna (damienmckenna) (coordinator), per the CVE Program record.