# Photo Gallery by 10Web <= 1.8.48 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'watermark_url' and 'watermark_link' Shortcode Attributes

- **ID:** WPSEC-2026-2718
- **Plugin:** Photo Gallery by 10Web – Mobile-Friendly Image Gallery (`photo-gallery`), https://wordpress.org/plugins/photo-gallery/
- **Affected versions:** all versions before 1.8.49
- **Fixed in:** 1.8.49 (Update to 1.8.49 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 High, affected versions High (as of 2026-11-07)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/photo-gallery
- **Fix released:** 2026-11-06
- **Published:** 2026-11-07
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2718/

## Description

The Photo Gallery by 10Web plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'watermark_url' and 'watermark_link' attributes of the Best_Wordpress_Gallery shortcode, and the matching watermark settings, in all versions up to, and including, 1.8.48, due to insufficient output escaping. The slideshow and image browser views URL-decode these values and print them into href and src attributes without escaping them. 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-2718/
- https://plugins.svn.wordpress.org/photo-gallery/tags/1.8.49/
- https://wordpress.org/plugins/photo-gallery/

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

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.
