# Picture Gallery – Frontend Image Uploads, AJAX Photo List <= 1.6.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'id' Shortcode Attribute

- **ID:** WPSEC-2026-1404
- **Plugin:** Picture Gallery – Frontend Image Uploads, AJAX Photo List (`picture-gallery`), https://wordpress.org/plugins/picture-gallery/
- **Affected versions:** all versions before 1.7.21
- **Fixed in:** 1.7.21 (Update to 1.7.21 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 None seen (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/picture-gallery
- **Fix released:** 2026-10-20
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1404/

## Description

The Picture Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' attribute of the videowhisper_pictures shortcode in all versions up to, and including, 1.6.2 due to insufficient input sanitization and output escaping, as the attribute was inserted directly into JavaScript and HTML identifiers. 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-1404/
- https://plugins.svn.wordpress.org/picture-gallery/tags/1.7.21/
- https://wordpress.org/plugins/picture-gallery/

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

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.
