Account takeover in Magic Login Mail or QR Code WordPress plugin
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Privilege escalation
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-269.
Summary
The Magic Login Mail or QR Code plugin is affected up to and including version 2.07. Its curpageurl() function builds magic-login links from the raw Host header, letting an unauthenticated remote attacker take over an administrator account once the administrator clicks the attacker-originated link (CWE-269). Exploitation requires a page where the shortcode renders without a permalink and a web server forwarding non-canonical Host headers.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| katsushi-kawamori | Magic Login Mail or QR Code | up to 2.07 | — | No fix listed | CNA |
- Magic Login Mail or QR Code Vendorkatsushi-kawamori Affected up to 2.07 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for Magic Login Mail or QR Code.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Timeline
- 2026-11-18 Threatist record created from CVE-2026-126721
- 2026-11-18 CISA SSVC decision points changed
- 2026-11-18 Alias added: GHSA-jj3r-fwq6-hv5v
References
Other 7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6059c493-fcdd-49c0-9a32-7e47cd76e2a3?source=cve
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L198
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L76
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L414
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L269
- https://plugins.trac.wordpress.org/browser/magic-login-mail/tags/2.07/lib/class-magicloginmail.php#L172
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3797196%40magic-login-mail&new=3797196%40magic-login-mail
More katsushi-kawamori vulnerabilities
- TI-2026-01794 Magic Login Mail or QR Code <= 2.05 - Unauthenticated Privilege Escalation via Insecure QR Code File Storage CVSS 3.1HIGH 8.1
- TI-2024-12917 Moving Media Library <= 1.22 - Authenticated (Administrator+) Directory Traversal to Arbitrary File Deletion CVSS 3.1MEDIUM 6.5
- TI-2024-11724 Moving Users <= 1.05 - Unauthenticated Sensitive Information Exposure CVSS 3.1MEDIUM 5.3
- TI-2026-96176 Stored cross-site scripting in Organize Media Folder via EXIF metadata CVSS 3.1MEDIUM 6.4
- TI-2026-24885 WordPress Simple Blog Card plugin <= 2.37 - Server Side Request Forgery (SSRF) vulnerability CVSS 3.1MEDIUM 6.4
Sources
- CVE-2026-126721 · CVE Program
- CVE-2026-126721 · NVD
- FIRST EPSS
- GHSA-jj3r-fwq6-hv5v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences