Skip to main content

Magic Login Mail EUVDEUVD-2026-128999

| CVE-2026-126721 HIGH
Improper Privilege Management (CWE-269)
2026-11-18 Wordfence GHSA-jj3r-fwq6-hv5v
7.5
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target admin email and vulnerable page
  2. Delivery
    Send request with spoofed Host header
  3. Exploit
    curpageurl() falls back to attacker HTTP_HOST
  4. Install
    Magic-login email delivered to admin via wp_mail
  5. C2
    Admin clicks attacker-origin link, leaking uid/token
  6. Execute
    Replay uid/token to trigger wp_set_auth_cookie
  7. Impact
    Full Administrator session hijacked

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific conjunction of non-default conditions, all stated in the description: (1) the [magic_login] shortcode must render on a path where get_the_permalink() returns empty or false, such as a 404 page or a block-theme header template part; (2) the web server must forward non-canonical/attacker-controlled Host headers to WordPress rather than normalizing them; (3) the attacker must already know the targeted Administrator's email address; and (4) the targeted Administrator must click the attacker-originated magic-login link. These are the limiting factors - most notably the mandatory administrator click (UI:R) and the server's acceptance of spoofed Host headers - which sharply narrow real-world exploitability. Note the attack takes over a distinct, pre-existing Administrator account and cannot be triggered by the attacker alone; it does not escalate the attacker's own account.

Impact

This is a genuinely high-severity but hard-to-trigger flaw, better described as high-CVSS-with-multiple-gating-conditions than a drop-everything emergency. The CVSS 7.5 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) correctly captures the tension: exploitation is unauthenticated (PR:N) and network-delivered (AV:N), and full compromise of an Administrator account yields complete confidentiality, integrity and availability impact (C:H/I:H/A:H), yet the high attack complexity (AC:H) and required user interaction (UI:R) reflect a chain of preconditions that rarely all hold at once. The vuln.today Decision label is 'this_week' (not act_now/emergency), which is consistent with a serious issue that is not under mass exploitation. No EPSS score, no CISA KEV listing, and no confirmed working exploit code were supplied - the only exploitation-relevant references are the Wordfence advisory and WordPress plugin source (trac) lines, so there is no evidence of active exploitation. The SSVC-style signals therefore line up: real technical impact, but exploitation is not automatable (it needs attacker knowledge of a specific admin email plus an admin click plus a non-canonical Host-forwarding server plus a page where get_the_permalink() returns empty). Net: prioritize patching the plugin, but this is targeted/conditional rather than wormable.

Exploit ScenarioDerived

An attacker who knows a site administrator's email address sends a request with a spoofed Host header to a page where the [magic_login] shortcode renders but get_the_permalink() returns empty (e.g. a 404 page or block-theme template part), causing the generated magic-login link to be built against the attacker's host; the one-time uid/token pair is emailed to the real administrator, and if the administrator clicks the attacker-originated link the attacker replays the captured uid/token against the genuine site to establish a full Administrator session. No public exploit identified at time of analysis; only the Wordfence advisory and annotated plugin source are provided.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

The Magic Login Mail or QR Code plugin for WordPress (versions up to and including 2.07) can hand a full Administrator session to an unauthenticated attacker who spoofs the Host header on a magic-login link sent to a targeted administrator's inbox. Because curpageurl() falls back to the raw $_SERVER['HTTP_HOST'] when get_the_permalink() is empty or false, the emailed one-time uid/token pair can be minted against an attacker-controlled origin and then replayed against the real site, where autologin_via_url() calls wp_set_auth_cookie(). The flaw is rated CVSS 7.5 (AV:N/AC:H/PR:N/UI:R) and is gated by several non-default conditions - the shortcode rendering on a 404 or block-theme header template part, a web server that forwards non-canonical Host headers, knowledge of the target administrator's email address, and the administrator actually clicking the link - so it is high severity but hard to trigger; no public exploit code or confirmed active exploitation was identified at time of analysis, and the priority label is 'this_week'.

RemediationAI

Upstream fix available (PR/commit) via the plugin repository changeset 3797196 for magic-login-mail (https://plugins.trac.wordpress.org/changeset?reponame=&old=3797196%40magic-login-mail&new=3797196%40magic-login-mail); a released patched version number is not independently confirmed in the supplied data, so verify the current plugin release against that changeset before upgrading and treat 2.07 and earlier as vulnerable. Until a patched release is confirmed installed, the most effective compensating control is to make the vulnerable render paths unreachable: remove the [magic_login] shortcode from 404 templates and from block-theme header template parts so that get_the_permalink() never returns empty where the link is generated - the trade-off is that magic-login entry points disappear from those pages for legitimate users. In parallel, harden the web server so non-canonical Host headers are rejected or normalized before reaching WordPress (a default server block returning 444/403 for unknown hosts, or enforcing the canonical hostname and redirecting everything else), accepting that misconfigured or multi-domain deployments may need explicit allow-listing. As a last resort, deactivate the plugin entirely, which removes the takeover path but also disables all passwordless login functionality. Consult the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/6059c493-fcdd-49c0-9a32-7e47cd76e2a3?source=cve for the vendor's guidance; no public exploit code was identified at time of analysis, but the gating conditions should be checked against your own configuration.

Affected VersionsENISA

Magic Login Mail or QR Code 0 ≤2.07

Affected Packages

euvd magic_login_mail_or_qr_code no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a CWE-269 improper privilege management flaw rooted in how the plugin constructs the magic-login URL. The curpageurl() helper is supposed to derive the current page URL, but when get_the_permalink() returns empty or false it falls back to the raw, client-supplied $_SERVER['HTTP_HOST'] header instead of validating against the site's configured origin via home_url() or site_url(). That untrusted value becomes the origin of the link built by generate_url() and delivered through wp_mail() to the target user, meaning the one-time uid and token pair are embedded in a URL pointing at an attacker-chosen host. When that link is replayed against the genuine site, autologin_via_url() accepts the pair and calls wp_set_auth_cookie(), establishing an authenticated session for the account tied to that token. The relevant code paths are visible in the plugin's lib/class-magicloginmail.php at the plugin Trac lines 76, 172, 198, 269 and 414 for tag 2.07. Notably, the attack targets a distinct, already-privileged Administrator account rather than elevating the attacker's own account, and it cannot be initiated by the attacker alone: the CVSS vector's AC:H and UI:R reflect the required conjunction of a permalink-less render path, a Host-header-forwarding server, prior knowledge of the administrator's email address, and a click by that administrator, and the supplied sources do not describe any further trigger mechanism beyond these conditions.

Know when Magic Login Mail Or Qr Code gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Unauthenticated network delivery (PR:N/AV:N) but AC:H and UI:R because success depends on Host-header forwarding, a non-canonical page, and an admin click; admin takeover gives C:H/I:H/A:H, scope unchanged.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Magic Login Mail or QR Code WordPress plugin (versions ≤2.07) contains a high-severity vulnerability that could allow an unauthenticated attacker to gain full Administrator access to a WordPress site under specific conditions. This poses a significant risk to website integrity and data confidentiality, particularly for organizations relying on this plugin for authentication, as a compromised admin account could lead to site takeover, data theft, or further network intrusion.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: disable the plugin if not essential; configure the web server to reject requests with non-canonical Host headers; restrict administrator email addresses from public exposure; monitor for suspicious admin account creation or login activity.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Low
niche WordPress login plugin, limited install base, not core software
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy