CVE Explorer
CVE-2026-4021
The Contest Gallery plugin for WordPress is vulnerable to an authentication bypass leading to admin account takeover in all versions up to, and including, 28.1.5. This is due to the email confirmation handler in `users-registry-check-after-email-or-pin-confirmation.php` using the user's email string in a `WHERE ID = %s` clause instead of the numeric user ID, combined with an unauthenticated key-based login endpoint in `ajax-functions-frontend.php`. When the non-default `RegMailOptional=1` settin
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe","vendor":"contest-gallery","versions":[{"lessThanOrEqual":"28.1.5","status":"affected","version":"0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":8.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-287","description":"CWE-287 Improper Authentication","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/problemTypes/0/descriptions/0
Source references
6 source assertions{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.4/ajax/ajax-functions-frontend.php#L204"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/references/4
{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.4/v10/v10-admin/users/frontend/registry/users-registry-check-after-email-or-pin-confirmation.php#L153"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/references/2
{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/trunk/ajax/ajax-functions-frontend.php#L204"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/references/3
{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/trunk/v10/v10-admin/users/frontend/registry/users-registry-check-after-email-or-pin-confirmation.php#L153"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/references/1
{"url":"https://plugins.trac.wordpress.org/changeset?old_path=/contest-gallery/tags/28.1.5&new_path=/contest-gallery/tags/28.1.6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/references/5
{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f1b9725b-dee5-44ca-bb33-c6812fb76adc?source=cve"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c8e5db76ad115527b9da63c237f0e9ed5b7b1d0546b09ebdfb8ed185c511e89 · sha256:6e3b48a673fbe5cd… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.