Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe: SQL injection
Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe is affected by SQL injection. The vulnerable path is reachable without authentication. A successful request can alter database queries and expose or modify WordPress data. The published affected range is <= 28.1.6.
- Component
- Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
- Plugin slug
contest-gallery- Affected
- <= 28.1.6
- Safe version
> 28.1.6- Published
- May 19, 2026
This CVE was published May 19, 2026 and is one of 55 known issues for this plugin.
Update, patch or deactivate.
Update Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe to a release after 28.1.6, or disable and remove it until a fixed version is available.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'form_input' parameter in versions up to, and including, 28.1.6. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query inside the unauthenticated 'post_cg_gallery_form_upload' AJAX action (specifically the 'cb' branch of the included users-upload-check.php, where $f_input_id is concatenated unquoted into 'SELECT Field_Content FROM ... WHERE id = $f_input_id'). The endpoint is gated only by a public frontend nonce ('cg1l_action' / 'cg_nonce') that is exposed in the page source of any public gallery page. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N