CVE-2026-4021
Last modified
CVE-2026-4021 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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`. EPSS estimates a 0.44% chance of exploitation in the next 30 days.
Description
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` setting is enabled, an attacker can register with a crafted email starting with the target user ID (e.g., `1poc@example.test`), trigger the confirmation flow to overwrite the admin's `user_activation_key` via MySQL integer coercion, and then use the `post_cg1l_login_user_by_key` AJAX action to authenticate as the admin without any credentials. This makes it possible for unauthenticated attackers to take over any WordPress administrator account and gain full site control.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-4021?
How severe is CVE-2026-4021?
How do I fix CVE-2026-4021?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40199Net::CIDR::Lite versions before 0.23 for Perl mishandles IPv…6.5
- CVE-2026-4020The Gravity SMTP plugin for WordPress is vulnerable to Sensi…7.5
- CVE-2026-40200An issue was discovered in musl libc 0.7.10 through 1.2.6. S…8.1
- CVE-2026-40201@diplodoc/search-extension 1.0.0 through 3.x before 3.0.3 al…5.4
- CVE-2026-40208An attacker might be able to delay the processing of DoH3 qu…3.7
- CVE-2026-40209An attacker might be able to cause outgoing TCP connections …5.3
- CVE-2026-40210An out-of-bounds read might happen when SetMacAddrAction is …4.8
- CVE-2026-40211An attacker can send crafted DNS over HTTP/3 queries, trigge…5.3
- CVE-2026-40212OpenStack Skyline before 5.0.1, 6.0.0, and 7.0.0 has a DOM-b…5.4
- CVE-2026-40213OpenStack Cyborg before 16.0.1 uses rule:allow (check_str='@…7.4
- CVE-2026-40214In OpenStack Cyborg before 16.0.1, the Accelerator Request (…6.3
- CVE-2026-40215A race condition in OpenVPN 2.6.0 through 2.6.19 and 2.7_alp…7.4
Are you affected by CVE-2026-4021?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
