# CVE-2026-84919: Drupal PhotoSwipe dynamic caption cross-site scripting

Source: https://junglewise.ai/threats/cve-2026-84919-drupal-contrib-2026-131-this-module-enables-you-to-add-dynamic  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-22. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-84919 · Severity: info · Published 2026-10-22

The PhotoSwipe module adds image gallery features to Drupal sites. A cross-site scripting vulnerability in the dynamic caption component allows attackers with HTML entry permissions to inject malicious scripts that execute in users' browsers, potentially stealing session data or redirecting users to malicious sites.

Vendors: [Drupal](https://junglewise.ai/threats/vendors/drupal), [Packagist:Https://Packages.Drupal.Org/8](https://junglewise.ai/threats/vendors/packagist-https-packages-drupal-org-8).

## Quick answers

**Is CVE-2026-84919 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-84919 being exploited in the wild.

**How severe is CVE-2026-84919?** Informational severity, published 22 October 2026.

**Which products and versions are affected?** Drupal PhotoSwipe before 5.0.9; Packagist:Https://Packages.Drupal.Org/8 Drupal/Photoswipe ECOSYSTEM:introduced=0,fixed=5.0.9.

**Is there a fix for CVE-2026-84919?** Yes. Packagist:Https://Packages.Drupal.Org/8 Drupal/Photoswipe: upgrade to 5.0.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-84919 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-84919?** Check whether you run Drupal PhotoSwipe or Packagist:Https://Packages.Drupal.Org/8 Drupal/Photoswipe at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Packagist:Https://Packages.Drupal.Org/8 Drupal/Photoswipe: upgrade to 5.0.9 or later

## Technical details

The photoswipe_dynamic_caption component fails to properly sanitize user-supplied input such as image alt tags in its JavaScript caption script, enabling stored XSS. Attack requires the attacker to hold a Drupal role with HTML content entry permissions. An authenticated attacker can inject JavaScript that executes when other users view the gallery.

## Affected products

- Drupal PhotoSwipe before 5.0.9

## Identifiers

- CVE-2026-84919
- DRUPAL-CONTRIB-2026-131

## Timeline

- 2026-09-02: disclosed

## References

- [https://www.drupal.org/u/prudloff](https://www.drupal.org/u/prudloff)
- [https://www.drupal.org/sa-contrib-2026-131](https://www.drupal.org/sa-contrib-2026-131)

## Related threats

- [Drupal PhotoSwipe authorization bypass in image gallery display](https://junglewise.ai/threats/cve-2026-16645-drupal-photoswipe-authorization-bypass-in-image-gallery-display)
