CVE-2026-2374 Login No Captcha reCAPTCHA <= 1.8.0 - Unauthenticated Stored Cross-Site Scripting via PHP_SELF
Unauthenticated attackers can inject scripts via PHP_SELF that execute in the admin dashboard, potentially leading to account takeover.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-2374?
CVE-2026-2374 is a high-severity cross-site scripting vulnerability in robertpeake Login No Captcha reCAPTCHA, published on 28 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Login No Captcha reCAPTCHA plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `$_SERVER['PHP_SELF']` superglobal in all versions up to, and including, 1.8.0. This is due to the `authenticate()` function storing the unsanitized output of `basename($_SERVER['PHP_SELF'])` in the `login_nocaptcha_error` WordPress option when a login attempt is made from a non-standard login page (e.g., xmlrpc.php). The `admin_notices()` function then echoes this stored value directly into the admin dashboard HTML without escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator with a whitelisted IP address visits the WordPress dashboard within 30 seconds of the attack.
Weakness: CWE-79
Which versions are affected by CVE-2026-2374?
How do I fix CVE-2026-2374?
No fix has been published for CVE-2026-2374 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-2374 being exploited?
There is no known exploitation of CVE-2026-2374 in the wild and no public exploit code.
Sources
Also known as GHSA-m5hx-7xc5-p76f.