sales@hackhalt.com

Home / Threats / CVE-2026-126721

Magic Login Mail - Security Vulnerability (CVE-2026-126721)

CVE-2026-126721

The Magic Login Mail or QR Code plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in versions up to, and including, 2.07. This is due to the `curpageurl()` function falling back to the raw `$_SERVER['HTTP_HOST']` value — with no validation against the site's configured origin via `home_url()` or `site_url()` — when `get_the_permalink()` returns empty or false, allowing an attacker-controlled Host header to become the URL origin of the magic-login link generated by `generate_url()` and delivered to the target via `wp_mail()`. This makes it possible for unauthenticated attackers to intercept the one-time uid and token pair sent to a targeted Administrator's email and replay them against the real site, causing `autologin_via_url()` to call `wp_set_auth_cookie()` and establish a full Administrator session on the targeted account. Exploitation requires the `[magic_login]` shortcode to render on a path where `get_the_permalink()` returns empty or false (such as a 404 page or a block-theme header template part), the web server to forward non-canonical Host headers, the attacker to know the target administrator's email address, and the administrator to click the attacker-originated magic-login link. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.

CVE-2026-126721

HIGH CVSS 7.5 Published 2026-11-18 Updated 2026-11-18
AI Risk High (82/100) Active Exploit: No strong signal Published Exploit: No public exploit references Priority: P2 Urgent
Severity Band HIGH
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected Components 2
Reference Links 7
AI Risk Engine High (82/100)
Exploitability High
Active Exploitation No strong signal
Published Exploit Status No public exploit references

Threat Timeline

  1. 2026-11-18 CVE published and first recorded in the threat feed.
  2. 2026-11-18 Record updated with latest vulnerability metadata.
  3. 2026-11-20 AI technical context refreshed for mitigation and impact guidance.
  4. Now Monitoring for follow-up changes, linked references, and new related CVEs.

AI Context

Machine-generated threat intelligence

AI Updated 1 day ago

AI enriched 1 day ago (2026-11-20 22:35 UTC)

Technical Summary

The Magic Login Mail or QR Code plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in versions up to, and including, 2.07. This is due to the `curpageurl()` function falling back to the raw `$_SERVER['HTTP_HOST']` value — with no validation against the site's configured origin via `home_url()` or `site_url()` — when `get_the_permalink()` returns empty or false, allowing an attacker-controlled Host header to become the URL origin of the magic-login link generated by `generate_url()` and delivered to…

Potential Impact

Severity is HIGH (CVSS 7.5). Depending on deployment context, affected components may be exposed to unauthorized actions or data integrity risk.

Exploitability Assessment

Exploitability is assessed as High based on remote code execution potential, low-bar exploit prerequisites.

Primary risk drivers: remote code execution potential, low-bar exploit prerequisites

Mitigation Recommendations

Validate affected product versions, prioritize patching, and monitor references for vendor remediation guidance. If immediate patching is not possible, apply compensating controls and limit exposure of vulnerable surfaces.

Detection & Monitoring

Track authentication anomalies, unexpected file writes, and suspicious plugin API activity around affected components.

Business Impact Lens

AI risk score 82/100 (High, High) with priority P2 Urgent. Prioritize remediation where affected components process customer data, admin sessions, or Internet-exposed workflows.

Affected Products

Magic Login Mail PLUGIN · magic-login-mail Affected: <= 2.07 Fixed version not specified
Mail or QR Code PLUGIN · mail-or-qr-code Affected: <= 2.07 Fixed version not specified

References

What to do about this

Patch immediately Serious, and reachable without meaningful privilege.

Fix it

Update Magic Login Mail to the latest available version.

Where the vendor has not published a fix yet, disable the plugin until they do.

Cannot update today? Unauthorised administrator detection in Hack Halt ProSecure blocks this class of attack before WordPress processes the request.

Alert when a new administrator appears or a role is escalated. Creating a hidden admin is the most common persistence step after a WordPress compromise.

Compare Hack Halt plans Start free

Not sure if you are affected?

Scan your site to see whether it runs Magic Login Mail, and at which version.

Free, no installation, no account. It reads what your site already publishes, then tells you which plugins carry known vulnerabilities and what to do about each one.

Scan my site free See what Hack Halt does

Am I affected by this vulnerability?

You are affected if your site runs Magic Login Mail. No account is needed to exploit this, so a public site is reachable by anyone.

How do I fix it?

Update Magic Login Mail to the latest available version. Where the vendor has not yet published a fix, remove or disable the plugin until they do. Until you can update, Unauthorised administrator detection in Hack Halt ProSecure contains this class of attack at the request layer.

What can an attacker actually do?

This is a Privilege Escalation flaw. An attacker who exploits it can raise a low-privilege account, or none at all, to administrator.