# Photo Gallery by Supsystic – Image Gallery, Masonry, Albums & Lightbox <= 1.23.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Captions and Popup Titles

- **ID:** WPSEC-2026-4107
- **Plugin:** Photo Gallery by Supsystic – Image Gallery, Carousel, Slider & Lightbox (`gallery-by-supsystic`), https://wordpress.org/plugins/gallery-by-supsystic/
- **Affected versions:** all versions before 1.23.1
- **Fixed in:** 1.23.1 (Update to 1.23.1 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gallery-by-supsystic
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4107/

## Description

The Photo Gallery by Supsystic plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via gallery captions and popup titles in all versions up to, and including, 1.23.0, due to the front-end gallery script starting on any '.grid-gallery' markup on the page, including markup written by hand into post content, and writing caption text, titles, image paths and embed values into the page as HTML without sanitization in the gallery, prettyPhoto and Photobox scripts. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4107/
- https://plugins.svn.wordpress.org/gallery-by-supsystic/tags/1.23.1/
- https://wordpress.org/plugins/gallery-by-supsystic/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4107/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
