Description
Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal PhotoSwipe - Responsive JavaScript Modal Image Gallery allows Stored XSS. This issue affects PhotoSwipe - Responsive JavaScript Modal Image Gallery versions: from 0.0.0 to 5.0.9.
Published: 2026-10-22
Score: 4.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patches
AI Analysis

Impact

This vulnerability is a stored cross‑site scripting flaw in the Drupal PhotoSwipe gallery. Improper sanitization of user‑supplied input during page rendering allows an attacker to inject malicious JavaScript that is stored in the gallery and executed whenever a victim views the gallery. Stored XSS can result in credential theft, defacement, or the hijacking of authenticated sessions, compromising confidentiality and integrity of users and the site.

Affected Systems

The flaw affects Drupal's PhotoSwipe gallery module versions 0.0.0 through 5.0.9. Any Drupal installation that includes this module and allows administrators or content creators to upload or edit gallery images without proper sanitization is vulnerable. The affected product is specifically the PhotoSwipe – Responsive JavaScript Modal Image Gallery for Drupal, and any site that uses any of the listed versions is at risk.

Risk and Exploitability

The CVSS score is 4.6, the EPSS score is < 1%, and the vulnerability is not in CISA’s KEV catalog. The likely attack vector is a stored cross‑site scripting flaw that could be introduced by uploading or editing gallery content via Drupal’s administrative interface. Based on the description, it is inferred that an attacker without elevated privileges can inject malicious code that is stored and later rendered to all users who view the gallery, potentially leading to credential theft or session hijacking. This makes the vulnerability broadly exploitable.

Generated by OpenCVE AI on October 23, 2026 at 02:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to PhotoSwipe 5.1.0 or newer via Composer
  • Ensure gallery content is properly sanitized and escape all user input
  • Deploy a Content Security Policy that blocks inline scripts and restricts script sources

Generated by OpenCVE AI on October 23, 2026 at 02:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Thu, 22 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 22 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
First Time appeared Drupal
Drupal photoswipe - Responsive Javascript Modal Image Gallery
Vendors & Products Drupal
Drupal photoswipe - Responsive Javascript Modal Image Gallery

Thu, 22 Oct 2026 01:45:00 +0000

Type Values Removed Values Added
Description Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal PhotoSwipe - Responsive JavaScript Modal Image Gallery allows Stored XSS. This issue affects PhotoSwipe - Responsive JavaScript Modal Image Gallery versions: from 0.0.0 to 5.0.9.
Title PhotoSwipe - Responsive JavaScript Modal Image Gallery - Moderately critical - Cross-site scripting - SA-CONTRIB-2026-131
Weaknesses CWE-79
References

Subscriptions

Drupal Photoswipe - Responsive Javascript Modal Image Gallery
cve-icon MITRE

Status: PUBLISHED

Assigner: drupal

Published:

Updated: 2026-10-22T17:17:13.561Z

Reserved: 2026-09-02T15:44:19.097Z

Link: CVE-2026-84919

cve-icon Vulnrichment

Updated: 2026-10-22T17:17:06.103Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-22T02:17:02.420

Modified: 2026-10-22T18:17:30.673

Link: CVE-2026-84919

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T02:15:14Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')