CVE-2026-16586
MediumCVSS 6.5Exploitation Probability (EPSS)
Low risk27th percentile - higher than 27% of all known CVEs
Summary
The Contest Gallery plugin for WordPress up to version 30.0.7 is vulnerable to second-order SQL injection via the cg_multiple_files_for_post and cgRealId parameters. Insufficient escaping and lack of query preparation allow authenticated attackers with author-level access to append additional SQL queries, potentially extracting sensitive information.
Risk Assessment
An attacker with author privileges can access database data, including user data and passwords.
Recommendation
Update the Contest Gallery plugin to the latest patched version. Restrict author-level access to trusted users only.
Other vulnerabilities in Contest Gallery
See all- CVE-2026-40771Critical
There is an unauthenticated SQL Injection vulnerability in Contest Gallery versions up to 28.1.6.
- CVE-2026-140999High
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Wasiliy Strecker Contest Gallery allows Stored XSS. This issue affects Contest Gallery: from n/a before 34.0.6.
- CVE-2026-140995High
The Contest Gallery WordPress plugin contains a Reflected XSS vulnerability due to improper neutralization of input during web page generation. A malicious script may be reflected in the server response and executed in the victim's browser. The issue affects versions before 34.0.6.
- CVE-2026-111837Medium
The WordPress Contest Gallery plugin (contest-gallery) in versions up to 34.0.1 contains a Cross-site Scripting (Stored XSS) vulnerability due to improper neutralization of input during web page generation. This allows an attacker to store a malicious script that executes in a user's browser.
- CVE-2026-107447Medium
The Contest Gallery WordPress plugin before 34.0.1 does not reliably validate the visitor identity used to enforce its one-vote-per-entry restriction, trusting a client-supplied request header and an unbound client-generated token, allowing unauthenticated users to bypass the restriction and cast multiple votes for the same contest entry.
- CVE-2026-107120Medium
The Contest Gallery WordPress plugin before 33.0.1 does not limit the number of attempts against its front-end registration email-verification step, which relies on a short numeric PIN, allowing unauthenticated attackers to brute-force the PIN and create and activate a WordPress account bound to an email address they do not own, gaining an authenticated session.
- CVE-2026-61986High
Unauthenticated Cross Site Scripting (XSS) vulnerability in Contest Gallery plugin versions up to 30.0.5. An attacker can inject malicious script without authentication.
- CVE-2026-16055High
The Contest Gallery WordPress plugin before 30.0.7 does not route its front-end login through the standard WordPress authentication flow, issuing an authentication cookie directly after the password check, which bypasses installed brute-force-protection and two-factor-authentication. This enables unlimited, unthrottled password guessing against any account (including administrators) up to full account takeover.
- CVE-2026-16057Medium
The Contest Gallery WordPress plugin before version 30.0.7 fails to perform capability or nonce checks in one of its post-deletion handlers, relying only on a coarse role-membership test. This allows any Author-level or higher user to permanently delete arbitrary posts, pages, and other content they do not own.
- CVE-2026-65447High
A Cross Site Scripting (XSS) vulnerability in the Contest Gallery plugin for WordPress versions up to 30.0.6. An unauthenticated attacker can inject a malicious script.
Original NVD description (English source)
The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress is vulnerable to Second-Order SQL Injection via MultipleFiles Second-Order Payload via 'cg_multiple_files_for_post' -> 'cgRealId' in all versions up to, and including, 30.0.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with author-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

