Skip to main content

Drupal PhotoSwipe CVE-2026-16645

| EUVDEUVD-2026-66202 CRITICAL
Missing Authorization (CWE-862)
2026-08-25 drupal GHSA-wq7x-7x4j-792v
9.1
CVSS 3.1 · Vendor: drupal
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Drupal site using PhotoSwipe module
  2. Delivery
    Enumerate protected gallery resource URLs
  3. Exploit
    Request resource without authorization
  4. Execution
    Bypass missing access check
  5. Impact
    Retrieve restricted images/data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires only that a Drupal site has the vulnerable PhotoSwipe module (0.0.0 through 3.2.0) installed and serving galleries whose underlying resources are meant to be access-restricted; the attacker must be able to reach the site over the network and know or enumerate the resource URLs. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N) no authentication and no user interaction are needed. Limiting factors: the target must actually run this contrib module and host content that is supposed to be protected - sites where all gallery content is public gain nothing for an attacker; the impact is bounded to whatever the exposed resources contain, and the flaw does not by itself grant code execution or account access.

Impact

Signals are mixed and should be weighed rather than taken at face value. The NVD CVSS 3.1 base score is 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), driven by remote, unauthenticated, low-complexity access with High confidentiality AND integrity impact; however, for a missing-authorization/forceful-browsing read-access flaw on a gallery module the I:H rating looks generous, and an independent assessment would more likely rate integrity as None - verify with the vendor advisory. SSVC frames it as Exploitation: none (no observed exploitation), Automatable: yes (discovery/exploitation can be scripted), Technical Impact: total. EPSS is low at 0.13% (3rd percentile), and it is not on CISA KEV, so there is no evidence of active exploitation despite the high CVSS. Net: this is a real, easy-to-exploit access-control gap on affected sites and worth patching promptly, but it is not a widespread emergency - treat it as a prompt-patch item, prioritized higher where the galleries hold sensitive or restricted images.

Exploit ScenarioDerived

An attacker browsing a Drupal site that uses PhotoSwipe guesses or enumerates the direct URL of a gallery resource that should require permission, requests it without logging in, and receives the restricted image or data because no authorization check is performed. Because CVSS is AV:N/AC:L/PR:N/UI:N and SSVC marks it automatable, the attacker can script bulk enumeration across many resource IDs. No public proof-of-concept is identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 26, 2026

Missing authorization in the Drupal PhotoSwipe - Responsive JavaScript Modal Image Gallery contributed module (all versions from 0.0.0 up to and including 3.2.0) lets unauthenticated remote users reach gallery resources they should not be able to see by directly requesting their URLs (forceful browsing). Because the module fails to enforce access control on protected content, an attacker can enumerate and retrieve images or associated data intended for privileged users only. No public exploit identified at time of analysis, and EPSS is low (0.13%), but the flaw is trivially automatable per CISA SSVC.

RemediationAI

Upgrade the PhotoSwipe module to the fixed release identified in Drupal advisory SA-CONTRIB-2026-088 (https://www.drupal.org/sa-contrib-2026-088); a patch is available per the vendor, though the exact fixed version string is not included in the provided data, so confirm the target release on the advisory page before deploying. If you cannot update immediately, apply compensating controls: restrict or block direct web access to the module's gallery resource routes at the web-server or reverse-proxy layer (allowing them only for authenticated sessions), place the affected site paths behind authentication or an access gate, and review Drupal permission settings for the content the galleries expose - with the trade-off that overly broad blocking may break legitimate gallery rendering for authorized users. After patching, audit web/access logs for prior direct requests to gallery resource URLs that bypassed normal navigation, since exploitation leaves ordinary-looking GET requests.

Affected VersionsENISA

PhotoSwipe - Responsive JavaScript Modal Image Gallery 0.0.0 <3.2.0

Affected Packages

composer drupal/photoswipe fix: 3.2.0
euvd photoswipe_responsive_javascript_modal_image_gallery fix: 3.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PhotoSwipe is a Drupal contributed module that wraps the PhotoSwipe JavaScript library to render responsive modal image galleries on Drupal-powered sites. The root cause is CWE-862 (Missing Authorization): the module presents a resource path or route without verifying that the requesting user holds the required Drupal permission, so Drupal's access-control layer is effectively bypassed for that resource. This is the classic 'forceful browsing' pattern, where an object exists behind a predictable or discoverable URL and the server serves it on request without an authorization check, rather than any memory-safety or injection defect. The single affected CPE is cpe:2.3:a:drupal:photoswipe_-_responsive_javascript_modal_image_gallery, confirming the issue is in the Drupal contrib module itself and not in Drupal core.

Know when Photoswipe Responsive Javascript Modal Image Gallery gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (drupal) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.5 HIGH

Remote, unauthenticated, low-complexity forceful browsing exposes restricted content (C:H); a missing read authorization does not modify data (I:N) or affect availability (A:N), diverging from NVD's I:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (drupal).

CVSS VectorVendor: drupal

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
CVE Published
Aug 25, 2026 - 22:21 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 25, 2026 - 22:21 cve.org
CRITICAL 9.1

DescriptionCVE.org

Missing Authorization vulnerability in Drupal PhotoSwipe - Responsive JavaScript Modal Image Gallery allows Forceful Browsing. This issue affects PhotoSwipe - Responsive JavaScript Modal Image Gallery versions: from 0.0.0 to 3.2.0.

Executive ViewAI

Why It Matters

The Drupal PhotoSwipe module (versions 0.0.0 through 3.2.0) contains a critical authorization flaw allowing unauthenticated users to directly access protected gallery images and data through forceful browsing. Any organization deploying this module risks unauthorized exposure of content intended for privileged users, potentially compromising confidentiality of sensitive visual materials. Leadership should prioritize immediate patching of all instances due to the ease of exploitation and potential data disclosure impact.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
Drupal contrib image-gallery module; modest install base, niche within Drupal sites
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy