# CVE-2026-12215: OTP Login & Register Woocommerce <= 2.7.2 - Unauthenticated Authentication Bypass via Brute Force

> Unauthenticated attackers can brute-force weak OTPs to bypass authentication and gain administrator access in the OTP Login & Register Woocommerce plugin.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 11 Sep 2026
- **Updated:** 11 Sep 2026
- **Also known as:** GHSA-26m4-chch-cqh3

## What is CVE-2026-12215?

CVE-2026-12215 is a medium-severity authentication bypass vulnerability in xootix OTP Login & Register Woocommerce, published on 11 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The OTP Login & Register Woocommerce plugin for WordPress is vulnerable to Authentication Bypass via OTP Brute Force in all versions up to, and including, 2.7.2. The vulnerability exists because the OTP rate-limit attempt counter in `process_otp_form` is keyed exclusively on the attacker-controlled `xoo_ml_user_ip_data` cookie's `ip_address` field, allowing unlimited counter resets by simply rotating the cookie, while the OTP itself is generated with PHP's non-cryptographic `rand()` function over a default space of only 9,000 possible values (1000–9999), and both the OTP issuance endpoint (`xoo_ml_login_with_otp`) and verification endpoint (`xoo_ml_otp_form_submit`) are registered as unauthenticated `wp_ajax_nopriv` actions with no nonce or capability checks. This makes it possible for unauthenticated attackers to brute-force the OTP for any registered account and obtain a full WordPress authentication session — including for administrator accounts — via `wp_set_auth_cookie()` in `login_user_with_otp()`. Exploitation requires the attacker to know the target user's registered phone number, which is used to trigger OTP issuance via the unauthenticated `xoo_ml_login_with_otp` endpoint.

Weakness: CWE-434 (Unrestricted Upload of File with Dangerous Type)

## Which versions are affected by CVE-2026-12215?


## How do I fix CVE-2026-12215?

No fix has been published for CVE-2026-12215 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-12215 being exploited?

There is no known exploitation of CVE-2026-12215 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-12215 and fix it if it is affected.

What it is: CVE-2026-12215 is a medium-severity authentication bypass vulnerability in xootix OTP Login & Register Woocommerce, published on 11 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-12215 in the wild and no public exploit code.

Affected product: xootix OTP Login & Register Woocommerce. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-12215/ (Markdown: https://insights.sbomify.com/CVE-2026-12215/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-12215
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-12215
- OSV: https://osv.dev/vulnerability/CVE-2026-12215

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-12215/
Summaries are generated and may contain mistakes; the official description above is the record.
