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.
Executive briefing
A structured intelligence assessment has not yet been generated. The source description is shown above. The background enrichment worker will retry this record.
Evidence confidence: Not assessed Evidence-derived, not an exploitability verdict
Severity & attack characteristics
CVSS vector:CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Technical explanation & impact
Technical root-cause details are not available in the current source record.
Assess the impact using the published CVSS metrics and the affected vendor component.
Affected products and versions
NVD has not supplied machine-readable vulnerable CPE product/version entries for this CVE. This is an information gap, not proof that no products are affected. Check the vendor advisory references below.
Remediation & validation
- Identify exposure by comparing the affected product and version ranges with your asset inventory, SBOM and externally exposed services.
- Review the linked vendor security advisory or patch notes. Upgrade to a vendor-confirmed fixed release; do not infer a fixed version from the CVE description.
- Until patched, consider restricting network access or disabling the affected feature where operationally safe. These are temporary controls, not a substitute for a vendor fix.
- Validate the remediation with a version check and vulnerability rescan, then retain change evidence.
No fixed version is displayed unless it is explicitly established by a vendor advisory. Follow the vendor's release notes for exact product and branch applicability.
Vendor advisories, patches & exploit references
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L172 VENDOR security@wordfence.com
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L198 VENDOR security@wordfence.com
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L269 VENDOR security@wordfence.com
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L414 VENDOR security@wordfence.com
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L76 VENDOR security@wordfence.com
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3797196%40magic-login-mail&new=3797196%40magic-login-mail VENDOR security@wordfence.com
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6059c493-fcdd-49c0-9a32-7e47cd76e2a3?source=cve REFERENCE security@wordfence.com