Magic Login Mail or QR Code 2.07 and earlier: Host header can shape the emailed login link (CVE-2026-126721)
Identifiers: CVE-2026-126721
- Published
- Last substantive change
- Last verified
Last verified: . Attention items are due for re-verification within 72 hours.
Summary
Wordfence Intelligence reports that the plugin builds its magic-login link from the raw Host header when the current page has no permalink. An attacker-controlled hostname can then appear in the link emailed to an administrator. Version 2.08, dated 12 November 2026 in the vendor changelog, fixes link generation.
Impact
If the whole chain works, an attacker who captures the one-time login values from the tampered link could sign in to the targeted administrator account. The attacker's own account is not promoted. This is takeover of one existing privileged account and it depends on a human click.
Who is affected
All of these must be true at once: the magic_login shortcode renders on a path with no permalink, such as a 404 page or a block theme header part; the web server forwards non-canonical Host headers; the attacker knows the administrator's email address; and the administrator clicks the tampered link. A fully automatic takeover without administrator interaction is not established by the source.
Products and versions
| Products and versions | Affected | Fixed |
|---|---|---|
| Magic Login Mail or QR Code | <= 2.07 | 2.08 |
Exploitation evidence
Exploitation not established. No exploitation in the wild is established in the sources we checked. Absence of reports is not proof of absence.
Actions
- Update the plugin to 2.08 or later.
- Confirm your web server only answers for your real hostnames and rejects or redirects any other Host value.
- Keep the login shortcode on a normal page with its own permalink rather than in global template parts or 404 templates.
- Remind administrators to check that a login email points at your real domain before clicking it.
Unknowns
- Whether a given hosting setup forwards arbitrary Host headers varies and was not assessed here.
- The CNA record was not reachable on 18 November 2026.
Sources
- Wordfence Intelligence https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/magic-login-mail/magic-login-mail-or-qr-code-207-unauthenticated-privilege-escalation-via-account-takeover-to-host-header-injection-in-curpageurl-magic-login-url
- Plugin vendor / WordPress SVN https://plugins.svn.wordpress.org/magic-login-mail/trunk/readme.txt
Change history
- — Published: Published 18 November 2026 from the Wordfence Intelligence notice and the vendor readme.