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

Medium 6.1 CWE-79Fixed in 3.38
ID
WPSEC-2026-3617
Plugin
Photonic Gallery & Lightbox for Flickr, SmugMug & Others (photonic)
Affected
from 2.40 before 3.38
Remediation
Update to 3.38 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-20
Attack surface
Photonic Gallery & Lightbox for Flickr, SmugMug & Others on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0