# Contest Gallery <= 34.0.1 - Unauthenticated Stored Cross-Site Scripting via Gallery Entry Attachment Title and Caption

- **ID:** WPSEC-2026-1269
- **Plugin:** Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe (`contest-gallery`), https://wordpress.org/plugins/contest-gallery/
- **Affected versions:** all versions before 34.0.2
- **Fixed in:** 34.0.2 (Update to 34.0.2 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/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-20)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/contest-gallery
- **Fix released:** 2026-10-18
- **Published:** 2026-10-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1269/

## Description

The Contest Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via gallery entry attachment fields (title, caption/excerpt, description and the additional-files data) in all versions up to, and including, 34.0.1, due to insufficient output escaping when these values are printed into single-quoted HTML attributes of the backend gallery entries view. This makes it possible for unauthenticated attackers, where a gallery's upload form accepts submissions from visitors, to inject arbitrary web scripts (for example through the title or caption metadata embedded in an uploaded image) that execute when an administrator views the gallery entries in the admin area.

## References

- https://wpsec.com/vuln/WPSEC-2026-1269/
- https://plugins.svn.wordpress.org/contest-gallery/tags/34.0.2/
- https://wordpress.org/plugins/contest-gallery/

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

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.
