# Photonic Gallery & Lightbox for Flickr, SmugMug & Others <= 3.37 - Unauthenticated Reflected Cross-Site Scripting via Encoded Gallery Shortcode

- **ID:** WPSEC-2026-3617
- **Plugin:** Photonic Gallery & Lightbox for Flickr, SmugMug & Others (`photonic`), https://wordpress.org/plugins/photonic/
- **Affected versions:** from 2.40 before 3.38
- **Fixed in:** 3.38 (Update to 3.38 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-20)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/photonic
- **Fix released:** 2026-11-19
- **Published:** 2026-11-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3617/

## Description

The Photonic Gallery & Lightbox for Flickr, SmugMug & Others plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the base64-encoded 'photonic_gallery' parameter used for galleries on dedicated pages in all versions up to, and including, 3.37. This is due to insufficient validation of the decoded value: the plugin only checks that a Photonic gallery shortcode appears somewhere in it and that no text remains outside registered shortcodes, then passes the whole value to do_shortcode() without sanitizing the output. Any other registered shortcode is executed too, including ones that return their enclosed content unchanged. This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes and inject arbitrary web scripts into the gallery page that execute if they can trick a user into clicking a crafted link. Exploitation requires a dedicated gallery page to be configured with the page content option set to replace or append.

## References

- https://wpsec.com/vuln/WPSEC-2026-3617/
- https://plugins.svn.wordpress.org/photonic/tags/3.38/
- https://wordpress.org/plugins/photonic/

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

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.
