CVE-2026-126721Katsushi Kawamori Magic Login Mail Or QR Code improper privilege management
CVSS score
7.5
High
CVSS 3.1 from wordfence.com
Exploit probability (EPSS)
0.35%
0.35% chance of exploitation in the next 30 days, higher than 29.6% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security@wordfence.com
How to fix it, step by step
Check whether you're affected
Find every system running katsushi-kawamori Magic Login Mail Or QR Code and compare its version with the affected versions.
Watch for an official fix
No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| katsushi-kawamori Magic Login Mail Or QR Code | ≤ 2.07 |
Weakness
- CWE-269 improper privilege management
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-126721 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-126721?
CVE-2026-126721 has a CVSS 3.1 base score of 7.5 (high).
Which versions are affected?
Katsushi Kawamori Magic Login Mail Or QR Code (≤ 2.07)
Is there a patch for CVE-2026-126721?
No patch is linked in the official record yet. Watch the vendor's security advisories.
References
- plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L172
- plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L198
- plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L269
- plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L414
- plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L76
- plugins.trac.wordpress.org/changeset?reponame=&old=3797196%40magic-login-mail&new=3797196%40magic-login-mail
- www.wordfence.com/threat-intel/vulnerabilities/id/6059c493-fcdd-49c0-9a32-7e47cd76e2a3?source=cve
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.