SQL Injection Vulnerability in Contest Gallery Plugin by WordPress
CVE-2026-8912
Key Information:
- Vendor
WordPress
- Vendor
- CVE Published:
- 19 May 2026
What is CVE-2026-8912?
The Contest Gallery plugin for WordPress allows unauthenticated attackers to exploit an SQL injection vulnerability through the 'form_input' parameter. This issue arises from inadequate escaping of user-supplied data within the 'post_cg_gallery_form_upload' AJAX action, particularly in the 'cb' branch of the users-upload-check.php file. This endpoint is accessible with only a basic frontend nonce available in any public gallery page source, enabling attackers to manipulate SQL queries. By injecting additional commands, they can potentially retrieve sensitive data from the database, compromising the integrity and confidentiality of affected WordPress sites.
Affected Version(s)
Contest Gallery β Upload & Vote Photos, Media, Sell with PayPal & Stripe 0 <= 28.1.6