Intel

AIKIDO-2025-10636

react-photoswipe-gallery is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 11, 2025

60

Medium Risk

This Affects:

JSreact-photoswipe-gallery
2.0.0 - 3.1.1
Fixed in 4.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) due to insufficient sanitization of the caption field, allowing attackers to inject and execute malicious scripts in a user’s browser.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

react-photoswipe-gallery is vulnerable to Cross-site Scripting (XSS) in versions 2.0.0 - 3.1.1.

How to fix this

Upgrade the react-photoswipe-gallery library to the patch version.